I'm new to haskell.
If I type in GHCi (7.10.3):
:info (:)
I get result:
*** Parser:
data [] a = ... | a : [a] -- Defined in ‘GHC.Types’
infixr 5 :
data [] a = ... | a : [a] -- Defined in ‘GHC.Types’
infixr 5 :
Does it means that operator is defined twice? I didn't find any suspicious things in the source =/
Pay no attention to this, it's certainly a bug. I can reproduce this behavior on GHC 7.10.3, but the current GHC 8.0 development snapshot doesn't suffer from this issue:
GHCi, version 8.0.0.20160316: http://www.haskell.org/ghc/ :? for help
Prelude> :info (:)
data [] a = ... | a : [a] -- Defined in ‘GHC.Types’
infixr 5 :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With