Re: Proposal - Foreign enum support

2014-04-19 Thread Edward Kmett
enough between that going through a quasiquoter seems to be the right solution. -Edward On Thu, Apr 17, 2014 at 10:19 AM, Merijn Verstraaten wrote: > Cross-post to haskell-prime in case there's any interest for including > this into the report's FFI specification. >

Re: Proposal - Foreign enum support

2014-04-19 Thread Carter Schonwald
14 7:19 AM, "Merijn Verstraaten" > wrote: > > Cross-post to haskell-prime in case there's any interest for including > this into the report's FFI specification. > > Proposal - Foreign enum support > === > > At the moment the FFI

Re: Proposal - Foreign enum support

2014-04-19 Thread Merijn Verstraaten
nums, bit vectors. IMHO any FFI proposal for working with C > enums should take that idiom into account. > > On Apr 17, 2014 7:19 AM, "Merijn Verstraaten" wrote: > Cross-post to haskell-prime in case there's any interest for including this > into the report'

Re: Proposal - Foreign enum support

2014-04-17 Thread John Lato
14 7:19 AM, "Merijn Verstraaten" wrote: > Cross-post to haskell-prime in case there's any interest for including > this into the report's FFI specification. > > Proposal - Foreign enum support > === > > At the moment the FFI do

Re: Proposal - Foreign enum support

2014-04-17 Thread Carter Schonwald
Agreed. A quasiquoter is the right approach here. On Thursday, April 17, 2014, Roman Cheplyaka wrote: > I am reluctant about adding a new syntactic feature for such a niche > problem. > > Can't this be achieved with a quaiquoter? > > Roman > ___ ghc-d

Re: Proposal - Foreign enum support

2014-04-17 Thread Roman Cheplyaka
I am reluctant about adding a new syntactic feature for such a niche problem. Can't this be achieved with a quaiquoter? Roman signature.asc Description: Digital signature ___ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/li

Proposal - Foreign enum support

2014-04-17 Thread Merijn Verstraaten
Cross-post to haskell-prime in case there's any interest for including this into the report's FFI specification. Proposal - Foreign enum support === At the moment the FFI does not have a convenient way with interacting enums (whether proper enums or CPP def