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:
United States Trends
- 1. Giannis 59.2K posts
- 2. Spotify 1.56M posts
- 3. Tosin 64.5K posts
- 4. Leeds 99.4K posts
- 5. Bucks 37.6K posts
- 6. Milwaukee 17.2K posts
- 7. Mark Andrews 2,117 posts
- 8. Maresca 49.2K posts
- 9. Danny Phantom 6,843 posts
- 10. #WhyIChime 2,031 posts
- 11. Poison Ivy 1,937 posts
- 12. Steve Cropper 1,036 posts
- 13. Isaiah Likely N/A
- 14. Knicks 25.8K posts
- 15. Purple 52.8K posts
- 16. Wirtz 36.5K posts
- 17. Phantasm 1,399 posts
- 18. Sunderland 46.9K posts
- 19. Delap 17.6K posts
- 20. Jack Smith 40.5K posts
You might like
-
Edward Kmett
@kmett -
Well-Typed
@welltyped -
gabby
@GabriellaG439 -
João Forte Carvalho @Conste11ation
@bgamari -
Tweag by Modus Create
@tweagio -
Andres Löh
@kosmikus -
Michael Snoyman
@snoyberg -
Phil Freeman
@paf31 -
Nikita Volkov
@NikitaYVolkov -
Matt Parsons
@mattoflambda -
Tikhon Jelvis
@tikhonjelvis -
Alejandro Serrano
@trupill -
gelisam
@haskell_cat -
Veronika Romashkina
@vrom911
Something went wrong.
Something went wrong.