For example:
{-# LANGUAGE UnicodeSyntax #-}
data Symbolic n
= Constant n
| Variable String
| Symbolic n :+ Symbolic n
| Symbolic n :* Symbolic n
| Symbolic n :◁ Symbolic n
deriving (Show)
This code loaded successfully in GHCi.
Then I input:
Constant 2 :* Variable "a"
That's OK.
But when I input:
Constant 2 :◁ Variable "a"
*** Exception: : hPutChar: invalid argument (invalid character)
Does this mean that Haskell does not support Unicode symbol constructor?
How to make it support Unicode symbol constructor?
Environment: GHCi 8.6.3 (WinGHCi) Windows 7
Thanks.
New observation:
It works when ◁ appeared in source file, but you can not input ◁ in REPL (I use WinGHCi).