summaryrefslogtreecommitdiff
path: root/Http.hs
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-11-27 17:40:04 +0400
committerAndrew <saintruler@gmail.com>2020-11-27 17:40:04 +0400
commitfb7e450d917ec87202f9de019238b78c1b645328 (patch)
treeca70481709864b5c6510009fe45a9d6b6f91dd8c /Http.hs
parent039c96096bf8f2294850be79a88a0761a5f58acf (diff)
Added basic HTTP types
Diffstat (limited to 'Http.hs')
-rw-r--r--Http.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Http.hs b/Http.hs
index 1d60456..f8da91f 100644
--- a/Http.hs
+++ b/Http.hs
@@ -3,5 +3,10 @@ module Http where
import Data.Text (Text)
data Header = Header Text Text
-data Method = GET | POST
+ deriving Show
+
+data Method = GET | PUT | POST
+ deriving (Show, Eq)
+
data QueryPair = QueryPair Text Text
+ deriving Show