[Haskell-beginners] undefined symbol not allowed?

Antoine Latter aslatter at gmail.com
Fri Jul 8 06:52:23 CEST 2011


On Thu, Jul 7, 2011 at 11:42 PM, Christopher Howard
<christopher.howard at frigidcode.com> wrote:
> I'm one of those evil people who loves to sprinkle Unicode throughout my
> code. I thought it was pretty cool when I learned about the UnicodeSyntax
> language extension, as well as the base-unicode-symbols package. However, I
> am a little perplexed that this symbol is not provided by either of those:
>
>>
> That is, the "bottom" symbol, Unicode #22A5 (\8869), which I have seen in
> some programming texts as representing the undefined expression.
>
> I tried just defining
>
> ⊥ = undefined
>
> But ghc won't parse that. Why is this? And is there a way to make it work?
>

What error message do you get?

> --
> frigidcode.com
> theologia.indicium.us
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>



More information about the Beginners mailing list