0

What do those #-signs mean? For example,

data Word = W# Word# deriving (Eq, Ord)

I tried to google it but I found nothing.

  • 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 Nov 6 '15 at 11:28
3

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 +#)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.