Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
9fd41268
Commit
9fd41268
authored
Jul 11, 2008
by
Ian Lynagh
Browse files
Remove the need for undecidable instances in LazyUniqFM
parent
58c73734
Changes
2
Hide whitespace changes
Inline
Side-by-side
compiler/Makefile
View file @
9fd41268
...
...
@@ -599,10 +599,6 @@ endif
# prototype via a global option instead of a myriad of per-file OPTIONS
SRC_HC_OPTS
+=
'-\#include "cutils.h"'
ifeq
"$(ghc_ge_605)" "NO"
utils/
LazyUniqFM_HC_OPTS
+=
-fallow-undecidable-instances
endif
# ----------------------------------------------------------------------------
# Generate supporting stuff for prelude/PrimOp.lhs
# from prelude/primops.txt
...
...
compiler/utils/LazyUniqFM.lhs
View file @
9fd41268
...
...
@@ -12,7 +12,6 @@ Basically, the things need to be in class @Uniquable@, and we use the
\begin{code}
{-# OPTIONS -Wall -fno-warn-name-shadowing -Werror #-}
{-# LANGUAGE UndecidableInstances #-}
module LazyUniqFM (
UniqFM, -- abstract type
...
...
@@ -180,7 +179,7 @@ data Lazy a = Lazy { fromLazy :: a }
newtype UniqFM ele = MkUniqFM (S.UniqFM (Lazy ele))
instance Outputable
(S.UniqFM (Lazy a))
=> Outputable (UniqFM a) where
instance Outputable
a
=> Outputable (UniqFM a) where
ppr (MkUniqFM fm) = ppr fm
instance Outputable a => Outputable (Lazy a) where
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment