Skip to content

Commit a9e93c3

Browse files
authored
Merge pull request #22 from garyb/query-monoid
Make `Query` a `Monoid`
2 parents 161abad + b674adc commit a9e93c3

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

bower.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"purescript-maps": "^3.0.0",
2323
"purescript-pathy": "^4.0.0",
2424
"purescript-string-parsers": "^3.0.0",
25-
"purescript-unfoldable": "^3.0.0"
25+
"purescript-unfoldable": "^3.0.0",
26+
"purescript-generics": "^4.0.0"
2627
},
2728
"devDependencies": {
2829
"purescript-test-unit": "11.0.0",

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"private": true,
33
"scripts": {
44
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "eslint src && pulp build --censor-lib --strict",
5+
"build": "eslint src && pulp build -- --censor-lib --strict",
66
"test": "pulp test"
77
},
88
"devDependencies": {
9-
"eslint": "^3.19.0",
10-
"pulp": "^11.0.0",
11-
"purescript": "^0.11.3",
9+
"eslint": "^4.4.1",
10+
"pulp": "^11.0.2",
11+
"purescript": "^0.11.6",
1212
"purescript-psa": "^0.5.1",
1313
"rimraf": "^2.6.1"
1414
}

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)