Skip to content

Commit

Permalink
Fix SwaggerMonoid Text instance (now it is true Monoid)
Browse files Browse the repository at this point in the history
  • Loading branch information
fizruk committed Nov 10, 2015
1 parent 0d0fbac commit 383a1fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Data/Swagger/Internal/Utils.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Data.Swagger.Internal.Utils where

Expand Down Expand Up @@ -111,6 +112,7 @@ instance SwaggerMonoid [a]

instance SwaggerMonoid Text where
swaggerMempty = mempty
swaggerMappend x "" = x
swaggerMappend _ y = y

instance SwaggerMonoid (Maybe a) where
Expand Down

0 comments on commit 383a1fa

Please sign in to comment.