Building ghc stages - solved

Marc Weber marco-oweber at gmx.de
Tue Apr 18 14:21:41 EDT 2006


On Mon, Apr 17, 2006 at 01:20:34PM +0200, Marc Weber wrote:
> GHC stage restriction: `view'
> is used in a top-level splice, and must be imported, not
> defined locally

The solution was to change
where elemFromList  = listToMaybe $ drop 1 $(dropWhile (/= view) $ (xs++[x]))
into :
where elemFromList  = listToMaybe $ drop 1 $ (dropWhile (/= view) $ (xs++[x]))
                                            ^

Really missleading error message ;)

Marc


More information about the Glasgow-haskell-users mailing list