re: purescript question
@AgathaSorceress np! happy to help
re: purescript question
@AgathaSorceress ah yeah, try changing the class constraint from Show to MyShow?
re: purescript question
@AgathaSorceress what's the type of the function you're calling it from?
re: purescript question
@AgathaSorceress oh, yeah, if it doesn't know statically that the type is a string then it will call the more generic version
re: purescript question
@AgathaSorceress ...I was sure there was such a thing but apparently not
you could probably write such a thing yourself using instance chains
class MyShow a where
myShow :: a -> String
instance stringShow :: MyShow String where
myShow = identity
else instance otherShow :: Show a => MyShow a
myShow = show
@cyrridven "actually, Haskell is the name of the language conforming to the Haskell 98 Report. the name of the language compiled by GHC is 'Haskell's Monster'"
@cyrridven jesus. Haskell was a mistake 🙃
@cyrridven wait where is the infinite match?
@cyrridven this cunt says why not both
@cyrridven yeah you're gonna wanna recurse all the way down to the base case
Trans girl, queer, musician, anarchisty, 30s. A writer of fiction and poetry and a researcher of things.