[Haskell-cafe] an idea for modifiyng data/newtype syntax: use `::=` instead of `=`
M Farkas-Dyck
strake888 at gmail.com
Sat Aug 8 16:56:36 UTC 2015
On 08/08/2015, MigMit <miguelimo38 at yandex.ru> wrote:
> That's ridiculous. The code would only be intuitive enough if it's written
> like this:
>
> típus Név = Sor
> adat Időpont = Időpont Egész Egész Egész
Actually I think you missed the point here:
adat Időpont ahol
Időpont :: Egész -> Egész -> Egész -> Időpont
Much better ☺
More information about the Haskell-Cafe
mailing list