diff options
Diffstat (limited to '')
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | LICENSE | 31 | ||||
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | server/LICENSE | 31 | ||||
-rw-r--r-- | server/cafp.cabal | 29 | ||||
-rw-r--r-- | server/lib/Cafp/Messages.hs | 7 | ||||
-rw-r--r-- | server/src/GenerateTypes.hs | 4 | ||||
-rw-r--r-- | server/stack.yaml | 3 | ||||
-rw-r--r-- | server/stack.yaml.lock | 12 |
9 files changed, 121 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e463d23 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/server/.stack-work/ @@ -0,0 +1,31 @@ +Copyright (c) 2020, Jasper Van der Jeugt + +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Jasper Van der Jeugt nor the names of other + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..90142d8 --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +.PHONY: build +build: + cd server && stack build diff --git a/server/LICENSE b/server/LICENSE new file mode 100644 index 0000000..8595b3f --- /dev/null +++ b/server/LICENSE @@ -0,0 +1,31 @@ +Copyright (c) 2009 - 2017, Jasper Van der Jeugt + +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Jasper Van der Jeugt nor the names of other + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/server/cafp.cabal b/server/cafp.cabal new file mode 100644 index 0000000..08b479c --- /dev/null +++ b/server/cafp.cabal @@ -0,0 +1,29 @@ +Name: cafp +Version: 0.1.0 +Synopsis: Cards Against Functional Programming +License: BSD3 +License-file: LICENSE +Author: Jasper Van der Jeugt <m@jaspervdj.be> +Maintainer: Jasper Van der Jeugt <m@jaspervdj.be> +Copyright: 2020 Jasper Van der Jeugt <m@jaspervdj.be> +Category: Language +Build-type: Simple +Cabal-version: 1.18 + +Library + Default-language: Haskell2010 + Ghc-options: -Wall + Hs-source-dirs: lib + + Exposed-modules: + Cafp.Messages + + Build-depends: + base >= 4.9 && < 5 + +Executable cafp-generate-types + Hs-source-dirs: src + Main-is: GenerateTypes.hs + Default-language: Haskell2010 + Ghc-options: -Wall + build-depends: base, cafp diff --git a/server/lib/Cafp/Messages.hs b/server/lib/Cafp/Messages.hs new file mode 100644 index 0000000..e3c28fe --- /dev/null +++ b/server/lib/Cafp/Messages.hs @@ -0,0 +1,7 @@ +module Cafp.Messages + ( ServerMessage (..) + ) where + +data ServerMessage + = Welcome + deriving (Show) diff --git a/server/src/GenerateTypes.hs b/server/src/GenerateTypes.hs new file mode 100644 index 0000000..730d9fb --- /dev/null +++ b/server/src/GenerateTypes.hs @@ -0,0 +1,4 @@ +import Cafp.Messages + +main :: IO () +main = print Welcome diff --git a/server/stack.yaml b/server/stack.yaml new file mode 100644 index 0000000..bb5262d --- /dev/null +++ b/server/stack.yaml @@ -0,0 +1,3 @@ +resolver: 'lts-15.6' +packages: +- '.' diff --git a/server/stack.yaml.lock b/server/stack.yaml.lock new file mode 100644 index 0000000..ebcdead --- /dev/null +++ b/server/stack.yaml.lock @@ -0,0 +1,12 @@ +# 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: [] +snapshots: +- completed: + size: 491387 + url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/15/6.yaml + sha256: 8d81505a6de861e167a58534ab62330afb75bfa108735c7db1204f7ef2a39d79 + original: lts-15.6 |