|
RE: RULES/SPECIALIZE not parsing:: msg#00004lang.haskell.glasgow.bugs
> Rules.hs: > > module Rules where > > my_id :: a -> a > my_id a = a > > my_int_id :: Int -> Int > my_int_id a = a > > {-# RULES my_id = my_int_id #-} Each rule should begin with a string, like: {-# RULES "my_id" my_id = my_int_id #-} > {-# SPECIALIZE my_id :: Int -> Int = my_int_id #-} These kind of specialise pragmas aren't supported any more, because the same effect can be achieved using RULES (it looks like that's what you were trying to do). The docs have some bogusness, which I'll fix. Cheers, Simon
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RULES/SPECIALIZE not parsing:, Hal Daume III |
|---|---|
| Next by Date: | [ ghc-Bugs-648783 ] Compile error for HsNet.h, noreply |
| Previous by Thread: | RULES/SPECIALIZE not parsing:, Hal Daume III |
| Next by Thread: | [ ghc-Bugs-648783 ] Compile error for HsNet.h, noreply |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |