hackage.haskell.org/package/adju...
hackage.haskell.org/package/adju...
{-# LANGUAGE DecidableNoninstances #-}
newtype Pred a = Pred (a → Bool) deriding Functor
{-# LANGUAGE DecidableNoninstances #-}
newtype Pred a = Pred (a → Bool) deriding Functor
In Haskell when we say that some type constructor "T" "is a Monad" that's actually a shorthand for saying that T "implements Monad" or (even longer) that "T implements the Monad typeclass"
Any type constructor "T" that implements the Monad typeclass "is a Monad"
In Haskell when we say that some type constructor "T" "is a Monad" that's actually a shorthand for saying that T "implements Monad" or (even longer) that "T implements the Monad typeclass"
Any type constructor "T" that implements the Monad typeclass "is a Monad"
gilwath.com/articles/sca...
#scala #scala3 #typeclass
gilwath.com/articles/sca...
#scala #scala3 #typeclass
Me writing Typescript: what?.the?.fuck?.fuckit ?? "whatever who gives a shit"
Me writing Typescript: what?.the?.fuck?.fuckit ?? "whatever who gives a shit"
kubuszok.com//2025/sanely...
kubuszok.com//2025/sanely...