Neil Mitchell escribió:
> Hi
> 
>> Does GHC specialize map?  If it doesn't, then hand crafted version
>> could be faster.
> 
> GHC doesn't specialize map, and a hand-crafted one could be faster -
> but you then wouldn't get foldr/build fusion. In general HLint tries
> to make the code prettier, but sometimes you will need to deviate from
> its suggestions when you've profiled etc. To stop HLint warning you
> just create Hints.hs and include the line "ignore =
> LennartsSuperFastModule.mySpecialisedMap" - full details in the
> manual.
> 

I am really happy with HLint. Being relatively new to haskell world, I
tend to be slow in finding ready-made solutions, or using folds fot
recursive tasks.

HLint 1.0 discovers `on` for me, and only for that I will be infinitely
grateful.

Now, if HLint 1.2 helps me with the map/fold understanding, I will be
'continuous infinitely' grateful (although real numbers are not
representable!)

Best regards,

Zara

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to