On Tue, Dec 31, 2002 at 03:45:55PM -0800, Bryn Keller wrote:

Your code is not valid (although obviously GHC should tell you so rather
than segfaulting) - you probably mean something like:

> {- metatest.hs -}
> import Splices

Insert "import Language.Haskell.THSyntax"

> 
> main = do
>   print $(len "foo")

Change to "  print $(len (string "foo"))"

> {- Splices.hs -}
> 
> module Splices where
> 
> import Language.Haskell.THSyntax
> 
> len s = [| length s |]

Change to "len s = [| length $s |]"


Ian

_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to