blob: d8984eeec8afaaf11f29231e03b1d531e799261b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module Sproxy.Application.Access (
Inquiry
, Question(..)
) where
import Data.Aeson (FromJSON)
import Data.HashMap.Strict (HashMap)
import Data.Text (Text)
import GHC.Generics (Generic)
data Question = Question {
path :: Text
, method :: Text
} deriving (Generic, Show)
instance FromJSON Question
type Inquiry = HashMap Text Question
|