Skip to content
Browse files

Instance for Bool as per #4

  • Loading branch information...
1 parent 358d7d9 commit 8c84581a1e0d4f8ca17a9ff1a52a592465638b64 @singpolyma singpolyma committed Oct 13, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 Data/Text/Buildable.hs
View
4 Data/Text/Buildable.hs
@@ -169,3 +169,7 @@ instance Buildable WordPtr where
instance Buildable (Ptr a) where
build = build . ptrToWordPtr
+
+instance Buildable Bool where
+ build True = fromText "True"
+ build False = fromText "False"

0 comments on commit 8c84581

Please sign in to comment.
Something went wrong with that request. Please try again.