| Subject: | Re: [Haskell-cafe] Re: GATD and pattern matching |
|---|---|
| From: | Ben Millwood |
| Date: | Fri, 11 Jun 2010 12:51:36 +0100 |
On Fri, Jun 11, 2010 at 12:46 AM, Felipe Lessa <felipe.lessa@xxxxxxxxx> wrote: > > eqTypeable :: (Typeable a, Eq a, Typeable b, Eq b) => a -> b -> Bool > eqTypeable x y = case cast y of > Just y' -> x == y' > Nothing -> False > ...or indeed: eqTypeable x y = cast x == Just y _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@xxxxxxxxxxx http://www.haskell.org/mailman/listinfo/haskell-cafe |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Haskell-cafe] How to "Show" an Operation?, Bas van Dijk |
|---|---|
| Next by Date: | Re: [Haskell-cafe] Using the ContT monads for early exits of IO ?, Christopher Done |
| Previous by Thread: | Re: [Haskell-cafe] Re: GATD and pattern matching, Felipe Lessa |
| Next by Thread: | Re: [Haskell-cafe] Re: GATD and pattern matching, Ozgur Akgun |
| Indexes: | [Date] [Thread] [Top] [All Lists] |