RULES/SPECIALIZE not parsing:

Hal Daume III hdaume at ISI.EDU
Tue Dec 3 18:20:11 EST 2002


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 #-}
{-# SPECIALIZE my_id :: Int -> Int = my_int_id #-}


Neither of the pragmas are accepted.  The first elicits a parse error on
my_id, the second elicits a parse error on '='.

GHC 5.04.1 Solaris.

 - Hal

--
Hal Daume III

 "Computer science is no more about computers    | hdaume at isi.edu
  than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume




More information about the Glasgow-haskell-bugs mailing list