A bit off topic- why is GHC so large? I recently noticed it was over three times the size of gcc (for amd64, in an .xz archive).
This might be interesting to you: http://stackoverflow.com/questions/4858585/why-is-ghc-so-lar...
GHC 7.8.1 released
61–70 of 103 posts
Re: GHC 7.8.1 released
#62What will be the easiest way to get GHC 7.8.1 running alongside the official GHC packages for Debian (specifically Jessie)? Should I download a package from http://deb.haskell.org/ ? If so, where can I find 7.8.1?
Re: GHC 7.8.1 released
#63I really want to get into Haskell, but I just don't understand it. The tutorial on the official site doesn't do it for me. Can anyone suggest alternative resources for learning? I'm used to C-like languages. Thanks for all the responses. I'll start with LYAH.
I sincerely recommend against LYAH! It takes sooooooooo loooooong to get to the interesting bits that actually make Haskell worth learning an has so many try-to-be-funny examples that it makes you run away screaming... I tried going through it but it was literally oscillating between putting my mind to sleep and making wish to grab a chainsaw :) And the "humor" and "pretty pictures" don't help either... they were mor…
Running through some chapters of Real World Haskell online, however, is proving to be a bit of an eye opener ;-)
Might just be that I could care less about hand drawn illustrations and the occassional somewhat humerous aside.
YMMV, many seem to love LYAH.
Re: GHC 7.8.1 released
#64Re: GHC 7.8.1 released
#65Re: GHC 7.8.1 released
#66A bit off topic- why is GHC so large? I recently noticed it was over three times the size of gcc (for amd64, in an .xz archive).
Re: GHC 7.8.1 released
#67Earlier quoted context omitted.
What are your objections to OverloadedStrings?
It can give unexpected/wrong results when working with Unicode strings.
Re: GHC 7.8.1 released
#68Earlier quoted context omitted.
What are your objections to OverloadedStrings?
It can give unexpected/wrong results when working with Unicode strings.
Re: GHC 7.8.1 released
#69 {-# LANGUAGE ViewPatterns, PatternSynonyms #-}
import Data.Set as S
-- patterns that a library might provide
pattern x : Just (x, m))
pattern m :> x Just (x, m))
pattern Null True)
-- a really dumb test function using those patterns
doubleMin :: (Ord a, Num a) => Set a -> Set a
doubleMin (x :
Ignore how dumb my test function is, and just focus on how lightweight it becomes to match views of the data structure. Figuring out what patterns to include my libraries is going to be a fun new design point.Re: GHC 7.8.1 released
#70Earlier quoted context omitted.
Not really, it's quite easy to call Objective-C methods (or more correctly, to send messages to Objective-C selectors) and perform other Objective-C-related tasks from C. See: https://developer.apple.com/library/mac/documentation/Cocoa/... This is actually what the Objective-C compiler does. It translates your Objective-C code to C method calls.
It's not that easy. I mean, just sending a message could entail one of objc_msgSend, obj_msgSend_stret or objc_msgSend_fpret, and which one you want to use is not always as clear-cut as you might prefer ( http://www.sealiesoftware.com/blog/archive/2008/10/30/objc_e... ). And then there's the hassle of defining classes dynamically, which entails six function calls just to create a class with one empty method, and one…