Diff: [root] @ ae0223f1d1a | faq | css


File: haskell-sucks [Diff]

diff --git a/haskell-sucks b/haskell-sucks
index 44a1167..ce374d5 100644
-- a/haskell-sucks
++ b/haskell-sucks
@@ -59,4 +59,10 @@ Let us use them for indexes? Well, we can: there are genericLength and friends.

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.

\ No newline at end of file
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.
\ No newline at end

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 file problems with defining instances of complex types. For instance, if you define @instance [a]@, you can't define separate instance of @[SomeType]@
\ No newline at end of file

By Voker57 on 2011-08-04 03:43:11 +0400 Powered by bitcheese wiki engine