What do those #
-signs mean? For example,
data Word = W# Word# deriving (Eq, Ord)
I tried to google it but I found nothing.
Ixrec
27.7k15 gold badges84 silver badges87 bronze badges
asked Jul 29, 2015 at 21:17
-
On the theme of learning how to fish: Here is a list of all built in operators in haskell. For operators that are just a library function and not built in, you can try Hoogle and Hayoo. The info tab for haskell on StackOverflow has a nice summary of common questions and useful resources.Hjulle– Hjulle2015年11月06日 11:28:44 +00:00Commented Nov 6, 2015 at 11:28
1 Answer 1
Those are unboxed types, see the corresponding section of the haskell docs
They are mainly used for performance or interop reasons(along with the primitive operations that work on them, for example +#)
lang-hs