aboutsummaryrefslogtreecommitdiff
path: root/make_data.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make_data.sh')
-rw-r--r--make_data.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/make_data.sh b/make_data.sh
new file mode 100644
index 0000000..d35302c
--- /dev/null
+++ b/make_data.sh
@@ -0,0 +1,18 @@
+echo "{-# LANGUAGE DeriveGeneric #-}
+
+module Data.$1Data ($1, make$1) where
+
+import Data.Aeson
+import Data.Aeson.TH
+import GHC.Generics (Generic)
+
+data $1 = $1
+ {
+ } deriving (Eq, Show, Generic)
+
+instance FromJSON $1 where
+instance ToJSON $1 where
+
+make$1 :: -> $1
+make$1 = $1" > ./src/Data/$1Data.hs
+echo "Created $1Data.hs"