Evil Haskell Tips
@EvilHaskellTips
go forth, my statically typed minions. Eval! Apply!
You might like
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”.
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.
We must treasure our few gregarious programmers
cursed thought i can't exorcise
True friendship is when they're willing to tell it to you straight:
I've seen cursed #Haskell code I can't understand🥲 So, this happened even after many years... Anyone can explain how it works?
United States Trends
- 1. Jayden Daniels 22.2K posts
- 2. Dan Quinn 6,663 posts
- 3. Seahawks 36.7K posts
- 4. Sam Darnold 14.6K posts
- 5. Commanders 48.9K posts
- 6. Jake LaRavia 4,457 posts
- 7. #RaiseHail 8,655 posts
- 8. jungkook 585K posts
- 9. Bronny 13.4K posts
- 10. Marcus Smart 3,132 posts
- 11. Joe Whitt 2,222 posts
- 12. #BaddiesAfricaReunion 5,639 posts
- 13. #RHOP 6,609 posts
- 14. 60 Minutes 68.1K posts
- 15. Jaxson Hayes 2,935 posts
- 16. Jovic 1,051 posts
- 17. Ware 5,044 posts
- 18. Larson 20.3K posts
- 19. Lattimore 2,508 posts
- 20. Chiefs 74K posts
You might like
-
Edward Kmett
@kmett -
Well-Typed
@welltyped -
gabby
@GabriellaG439 -
João Forte Carvalho @Conste11ation
@bgamari -
Tweag by Modus Create
@tweagio -
Neil Mitchell (neildmitchell @🪡)
@ndm_haskell -
Andres Löh
@kosmikus -
Michael Snoyman
@snoyberg -
Nikita Volkov
@NikitaYVolkov -
Matt Parsons
@mattoflambda -
Tikhon Jelvis
@tikhonjelvis -
Alejandro Serrano
@trupill -
gelisam
@haskell_cat -
Veronika Romashkina
@vrom911
Something went wrong.
Something went wrong.