EvilHaskellTips's profile picture. go forth, my statically typed minions. Eval! Apply!

Evil Haskell Tips

@EvilHaskellTips

go forth, my statically typed minions. Eval! Apply!

Ugh, wish I’d have thunk of this one

Haskell be like RTS: do you have a value? Thunk: I have a concept of a value.



Create a Brobdingnagian monstrosity of 1.2m lines of Haskell. That way, the tooling you create to make working on it tolerable will be practically instant on codebases that don’t need 18 lanes for a 3 point turn. (With love and appreciation, @mercury)


“Semigroup” and “Monoid” are exclusionary terminology. Prefer “smashy-smashy” and “smashy-smashy-with-extra-nothing”.


EvilHaskellTips's tweet image.

It's spooky. It's esoteric. It's also the key to understanding the rise and relevance of functional programming. wired.trib.al/qNfcKv9



Tired of probabilistic correctness guarantees? instance Arbitrary UUID where … shrink uuid = case UUID.toWords uuid of (a,b,c,d) -> [UUID.fromWords a' b' c' d' | a' <- sw a, b' <- sw b, c' <- sw c, d' <- sw d] where sw w = take 10 $ iterate (`div` 2) w


Do as thou wilt shall be the whole of the Law, and the type system is really just a suggestion.

it's well known that satan and those who vibe with him are haskellers



Performance tip: s/sequence/mapConcurrently/g Good code can be run in any order.


The great thing about using Haskell with LLMs is that you can be absolutely precise about the nonsense you are ingesting and emitting.


If you're writing a parser for some type t, one fun thing to omit is a way to turn it back into a string. Easy visualisation, canonicalisation and roundtrip properties are for people who insist on putting bugs in their code and there is no reason to coddle them.


Evil Haskell Tips أعاد

We must treasure our few gregarious programmers

mwotton's tweet image. We must treasure our few gregarious programmers

Evil Haskell Tips أعاد

cursed thought i can't exorcise

mwotton's tweet image. cursed thought i can&apos;t exorcise

True friendship is when they're willing to tell it to you straight:

josecalderon's tweet image. True friendship is when they&apos;re willing to tell it to you straight:


Evil Haskell Tips أعاد

I've seen cursed #Haskell code I can't understand🥲 So, this happened even after many years... Anyone can explain how it works?

ChShersh's tweet image. I&apos;ve seen cursed #Haskell code I can&apos;t understand🥲
So, this happened even after many years...

Anyone can explain how it works?

Loading...

Something went wrong.


Something went wrong.