From 0a84fbaf5df4bd8b90a7f5dfbc64836a24e1b946 Mon Sep 17 00:00:00 2001 From: Inari Listenmaa Date: Fri, 4 Jun 2021 10:34:25 +0800 Subject: [PATCH] (Morphodict) Add stack and cabal files --- src/morphodict/morphodict.cabal | 20 ++++++++++++++++++++ src/morphodict/stack.yaml | 16 ++++++++++++++++ src/morphodict/stack.yaml.lock | 26 ++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 src/morphodict/morphodict.cabal create mode 100644 src/morphodict/stack.yaml create mode 100644 src/morphodict/stack.yaml.lock diff --git a/src/morphodict/morphodict.cabal b/src/morphodict/morphodict.cabal new file mode 100644 index 00000000..7a284b53 --- /dev/null +++ b/src/morphodict/morphodict.cabal @@ -0,0 +1,20 @@ +name: morphodict +version: 0.1 +homepage: https://github.com/GrammaticalFramework/gf-rgl/tree/master/src/morphodict +author: Aarne Ranta +category: Natural Language Processing +build-type: Simple +extra-source-files: README.md +cabal-version: >=1.10 + +executable MkMorphoDict + hs-source-dirs: + . + main-is: MkMorphoDict.hs + other-modules: + build-depends: + base, + containers, + safe, + gf + default-language: Haskell2010 \ No newline at end of file diff --git a/src/morphodict/stack.yaml b/src/morphodict/stack.yaml new file mode 100644 index 00000000..42603543 --- /dev/null +++ b/src/morphodict/stack.yaml @@ -0,0 +1,16 @@ +resolver: lts-12.26 + +packages: +- . + +# so that `stack build --copy-bins` puts bin here +local-bin-path: . + +extra-deps: +- gf-3.10 +- cgi-3001.3.0.3 # dependency of gf + +flags: + # this excludes PGF2 module in gf package + gf: + c-runtime: false \ No newline at end of file diff --git a/src/morphodict/stack.yaml.lock b/src/morphodict/stack.yaml.lock new file mode 100644 index 00000000..e24351f9 --- /dev/null +++ b/src/morphodict/stack.yaml.lock @@ -0,0 +1,26 @@ +# This file was autogenerated by Stack. +# You should not edit this file by hand. +# For more information, please see the documentation at: +# https://docs.haskellstack.org/en/stable/lock_files + +packages: +- completed: + hackage: gf-3.10@sha256:6f851dfaab5e1f9d4f3796515b86f78806a2bb305136a902713dfc2b92d9cfb0,8477 + pantry-tree: + size: 64924 + sha256: 66332577ff42a42eed767f451f53266e1020b72749cdcdf7387933615d5de091 + original: + hackage: gf-3.10 +- completed: + hackage: cgi-3001.3.0.3@sha256:4f3768d09e4a6620642588cab2e99d83c1b6b542dad6147d0af9532170036115,2076 + pantry-tree: + size: 667 + sha256: 65f6fd4574cffd1e5e2490c133b7ba58fd2fea0a65d81f1fa6fe14f08025629b + original: + hackage: cgi-3001.3.0.3 +snapshots: +- completed: + size: 509471 + url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/12/26.yaml + sha256: 95f014df58d0679b1c4a2b7bf2b652b61da8d30de5f571abb0d59015ef678646 + original: lts-12.26