logo       

RULES/SPECIALIZE not parsing:: msg#00003

lang.haskell.glasgow.bugs

Subject: RULES/SPECIALIZE not parsing:

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@xxxxxxx
than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise