RE: Pattern matching and GADTs

2015-03-09 Thread Simon Peyton Jones
e pattern guard solution looks like our best option to fix the | ordering issue. | | Thanks, | | Gabor | | > | > Simon | > | > | -Original Message- | > | From: ghc-devs [mailto:ghc-devs-boun...@haskell.org] On Behalf Of | > | Gabor Greif |

Re: Pattern matching and GADTs

2015-03-09 Thread Gabor Greif
Gabor > > Simon > > | -Original Message- > | From: ghc-devs [mailto:ghc-devs-boun...@haskell.org] On Behalf Of Gabor > | Greif > | Sent: 03 March 2015 14:13 > | To: ghc-devs@haskell.org > | Subject: Re: Pattern

RE: Pattern matching and GADTs

2015-03-03 Thread Simon Peyton Jones
c-devs@haskell.org | Subject: Re: Pattern matching and GADTs | | This might be off-topic for your paper, but possibly relevant for GADT- | based programming: | | In the below snippet | - | {-# LANGUAGE GADTs, PatternGuard

Re: Pattern matching and GADTs

2015-03-03 Thread Gabor Greif
This might be off-topic for your paper, but possibly relevant for GADT-based programming: In the below snippet - {-# LANGUAGE GADTs, PatternGuards #-} data Bar a where Listy :: Bar [Int] {- foo :: a -> Bar a -> Int foo [0] Listy =