Skip to content

Commit d50f9d2

Browse files
committed
Make Query a Monoid
1 parent 161abad commit d50f9d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Data/URI/Types.purs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Data.Either (Either)
66
import Data.Generic (class Generic)
77
import Data.List (List)
88
import Data.Maybe (Maybe)
9+
import Data.Monoid (class Monoid)
910
import Data.Newtype (class Newtype)
1011
import Data.Path.Pathy (Path, File, Dir, Abs, Rel, Sandboxed, Unsandboxed)
1112
import Data.Tuple (Tuple)
@@ -115,6 +116,8 @@ instance showHost ∷ Show Host where
115116
derive instance newtypeQueryNewtype Query _
116117
derive newtype instance eqQueryEq Query
117118
derive newtype instance ordQueryOrd Query
119+
derive newtype instance semigroupQuerySemigroup Query
120+
derive newtype instance monoidQueryMonoid Query
118121

119122
instance showQueryShow Query where
120123
show (Query m) = "(Query " <> show m <> ")"

0 commit comments

Comments
 (0)