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

2012-04-15 Thread Ben Millwood
On Sun, Apr 15, 2012 at 7:14 PM, Steffen Schuldenzucker wrote: > > > On 04/13/2012 10:49 PM, Ben Millwood wrote: >> >> I'm pleased to announce my first genuinely original Hackage package: >> notcpp-0.0.1! >> >> http://hackage.haskell.org/package/notcpp >> >> [...] > > > Why is it > >> scopeLookup

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

2012-04-15 Thread Steffen Schuldenzucker
On 04/13/2012 10:49 PM, Ben Millwood wrote: I'm pleased to announce my first genuinely original Hackage package: notcpp-0.0.1! http://hackage.haskell.org/package/notcpp [...] Why is it > scopeLookup :: String -> Q Exp with n bound to x :: T => @scopeLookup n@ evaluates to an Exp containing

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

2012-04-14 Thread Facundo Domínguez
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

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

2012-04-13 Thread Tim Matthews
With the C pre processor you can write different code for windows and non windows? Can your package achieve the same? The name alone makes it sound like an alternative to using CPP. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskel

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

2012-04-13 Thread Henning Thielemann
On Fri, 13 Apr 2012, Ben Millwood wrote: But I never liked using CPP: it completely defeats haskell-src-exts and hence things like SourceGraph, and anyway it's not designed for Haskell and doesn't at all understand its structure, or fit with its syntax. With a little thought, I wondered if crea