[Haskell-cafe] [Haskell] ANNOUNCE: notcpp-0.0.1

Facundo Domínguez facundominguez at gmail.com
Sat Apr 14 17:41:41 CEST 2012


Hi,

> scopeLookup :: String -> Q Exp

  The example provided here [1] fails at runtime is no name can be
found in scope. Would it make more sense to have

scopeLookup :: [String] -> Q Exp

and have compilation fail if no name in the list is in scope?

By the way, the library brings an interesting approach to conditional
compilation.
Facundo

[1] http://hackage.haskell.org/packages/archive/notcpp/0.0.1/doc/html/NotCPP-ScopeLookup.html



More information about the Haskell-Cafe mailing list