[Haskell-beginners] It needs a binder?

Alexander Chen alexander at chenjia.nl
Tue Apr 28 19:21:16 UTC 2020



i:: Num a => a

prelude>:l binder.hs
typed_checked.hs:1:1: error:
    The type signature for ‘i’ lacks an accompanying binding
1 | i:: Num a=> a   | ^


i:: Num a => a
i = 2

prelude>:l binder.hs

[1 of 1] Compiling Main             
Ok, one module loaded.

Why does it need a binder to make it work?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20200428/b74ba1de/attachment.html>

More information about the Beginners mailing list