We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c59582 commit d5cf142Copy full SHA for d5cf142
src/Affjax/StatusCode.purs
@@ -1,11 +1,13 @@
1
module Affjax.StatusCode where
2
3
import Prelude
4
+import Data.Newtype (class Newtype)
5
6
newtype StatusCode = StatusCode Int
7
8
derive instance eqStatusCode :: Eq StatusCode
9
derive instance ordStatusCode :: Ord StatusCode
10
+derive instance newtypeStatusCode :: Newtype StatusCode _
11
12
instance showStatusCode :: Show StatusCode where
13
show (StatusCode code) = "(StatusCode " <> show code <> ")"
0 commit comments