File tree 4 files changed +7
-9
lines changed 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
# purescript-media-types
2
2
3
- [ ![ Latest release] ( http://img.shields.io/bower/v /purescript-media-types.svg )] ( https://github.com/purescript-contrib/purescript-media-types/releases )
3
+ [ ![ Latest release] ( http://img.shields.io/github/release/purescript-contrib /purescript-media-types.svg )] ( https://github.com/purescript-contrib/purescript-media-types/releases )
4
4
[ ![ Build Status] ( https://travis-ci.org/purescript-contrib/purescript-media-types.svg?branch=master )] ( https://travis-ci.org/purescript-contrib/purescript-media-types )
5
- [ ![ Dependency Status] ( https://www.versioneye.com/user/projects/575589687757a0004a1de097/badge.svg?style=flat )] ( https://www.versioneye.com/user/projects/575589687757a0004a1de097 )
6
5
[ ![ Maintainer: garyb] ( https://img.shields.io/badge/maintainer-garyb-lightgrey.svg )] ( http://github.com/garyb )
7
6
8
7
Internet media / content / MIME types.
Original file line number Diff line number Diff line change 17
17
" package.json"
18
18
],
19
19
"dependencies" : {
20
- "purescript-generics" : " ^1 .0.0"
20
+ "purescript-generics" : " ^3 .0.0"
21
21
}
22
22
}
Original file line number Diff line number Diff line change 5
5
"build" : " pulp build --censor-lib --strict"
6
6
},
7
7
"devDependencies" : {
8
- "pulp" : " ^9.0.0 " ,
8
+ "pulp" : " ^9.0.1 " ,
9
9
"purescript-psa" : " ^0.3.9" ,
10
- "purescript" : " ^0.9 .1" ,
11
- "rimraf" : " ^2.5.0 "
10
+ "purescript" : " ^0.10 .1" ,
11
+ "rimraf" : " ^2.5.4 "
12
12
}
13
13
}
Original file line number Diff line number Diff line change @@ -3,12 +3,11 @@ module Data.MediaType where
3
3
import Prelude
4
4
5
5
import Data.Generic (class Generic )
6
+ import Data.Newtype (class Newtype )
6
7
7
8
newtype MediaType = MediaType String
8
9
9
- unMediaType :: MediaType -> String
10
- unMediaType (MediaType s) = s
11
-
10
+ derive instance newtypeMediaType :: Newtype MediaType
12
11
derive instance eqMediaType :: Eq MediaType
13
12
derive instance ordMediaType :: Ord MediaType
14
13
derive instance genericMediaType :: Generic MediaType
You can’t perform that action at this time.
0 commit comments