Skip to content

Instances for Maybe and Bool #4

Closed
singpolyma opened this Issue Aug 25, 2012 · 0 comments

1 participant

@singpolyma
instance (Buildable a) => Buildable (Maybe a) where
   build Nothing = mempty
   build (Just v) = build v

instance Buildable Bool where
   build True = build "True"
   build False = build "False"
@singpolyma singpolyma added a commit to singpolyma/text-format that referenced this issue Oct 13, 2012
@singpolyma singpolyma Instance for Maybe as per #4 358d7d9
@singpolyma singpolyma added a commit to singpolyma/text-format that referenced this issue Oct 13, 2012
@singpolyma singpolyma Instance for Bool as per #4 8c84581
@singpolyma singpolyma closed this Nov 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.