You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ExtendedDefaultRules #-}
importData.Monoid ((<>))
default (Integer, Float)
classToStringawheretoString::a->StringinstanceToStringCharwhere
toString = (:[])
instanceToStringIntegerwhere
toString =showinstanceToStringFloatwhere
toString =showinstanceToStringStringwhere
toString =idinfixr6/>(/>):: (ToStringa, ToStringb) =>a->b->String(/>) a b = toString a <> toString b
main =doprint$"Hello "/>5/>" and "/>7.3/>" var "/>'X'
It would be convenient to do something like the following:
FgRed 5 <> " " <> FgWhite 6
New operator?
The text was updated successfully, but these errors were encountered: