Diff: [root] @ ae0223f1d1a | faq | css


File: haskell-sucks [Diff]

-- a/haskell-sucks++ b/haskell-sucks
@@ -60,4 +60,10 @@
Let us use Infinity like any other number? No. We can only get it, and NaN, as results of arithmetic operations, and check for them. Moreover, division by zero raises an error.

Other brilliand thing in Haskell: Maybe. But standard library seems to avoid it whenever necessary. Pass shit to *read*, *!!*, *tail*, *init*, etc. and get an error.

h2. Instances

There is no way to explicitly export instances. If you define an instance, it automatically gets exported whenever you want it or not. You can't explicitly import an instance either.

There are lot of problems with defining instances of complex types. For instance, if you define @instance [a]@, you can't define separate instance of @[SomeType]@

By Voker57 on 2011-08-03 23:43:11 +0000