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

Joined January 2014
Evil Haskell Tips retweeted
Replying to @lucasMnts
yeah if you get stuck, you can just fix error
2
6
2
49
3,535
Some things are too evil even for me
finally, a language which combines the easiness of haskell and power of go type system presenting: Goskell
2
6
68
3,360
Evil Haskell Tips retweeted
1
2
11
681
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.
1
7
604
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)
1
1
1
12
1,115
“Semigroup” and “Monoid” are exclusionary terminology. Prefer “smashy-smashy” and “smashy-smashy-with-extra-nothing”.
1
11
3
75
4,497
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
1
1
1
1,248
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
6
834
Performance tip: s/sequence/mapConcurrently/g Good code can be run in any order.
2
1
10
1,249
The great thing about using Haskell with LLMs is that you can be absolutely precise about the nonsense you are ingesting and emitting.
9
795
Testing is for programmers lacking the moral fibre to prove every useful property about their code in the type system.
1
3
20
1,456
Yes, it will be extremely difficult to follow what's going on as the counterexample-finding algorithm dances between the different assertions. This is by design, and will help you back into the divine light of Writing Correct Code The First Time.
1
1
10
966
@DRMacIver has pointed out that Hypothesis will report all the assertions that fail rather than just the first. A decadent affordance to be avoided by the faithful.
2
521
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.
6
682
If the libraries underpinning your app don't implement Generic, you may have to get creative.
2
1
12
2,226
Only Sinead truly understands me
6
583
Evil Haskell Tips retweeted
We must treasure our few gregarious programmers
2
12
813
Evil Haskell Tips retweeted
cursed thought i can't exorcise
True friendship is when they're willing to tell it to you straight:
3
6
1
43
4,164