-The MIT License (MIT)
+Copyright (c) 2015 Cyril Cohen, Thierry Coquand, Simon Huber, Anders Mörtberg
-Copyright (c) 2015 Cyril Cohen, Thierry Coquand, Simon Huber, Anders
-Mörtberg
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--- /dev/null
+import Distribution.Simple
+import Distribution.Simple.Program
+import System.Process (system)
+
+main :: IO ()
+main = defaultMainWithHooks $ simpleUserHooks {
+ hookedPrograms = [bnfc],
+ preBuild = \args buildFlags -> do
+ _ <- system "bnfc --haskell -d Exp.cf"
+ preBuild simpleUserHooks args buildFlags
+}
+
+bnfc :: Program
+bnfc = (simpleProgram "bnfc") {
+ programFindVersion = findProgramVersion "--version" id
+ }
--- /dev/null
+-- Initial cubicaltt.cabal generated by cabal init. For further
+-- documentation, see http://haskell.org/cabal/users-guide/
+
+name: cubicaltt
+version: 1.0
+synopsis: Experimental implementation of a cubical type theory
+description: Experimental implementation of a cubical type theory in which the user can directly manipulate n-dimensional cubes.
+license: MIT
+license-file: LICENSE
+author: Cyril Cohen, Thierry Coquand, Simon Huber, Anders Mörtberg
+maintainer: mortberg@chalmers.se
+-- copyright:
+category: Language
+build-type: Custom
+extra-source-files: README.md
+cabal-version: >=1.10
+
+executable cubicaltt
+ main-is: Main.hs
+ other-modules: Exp.Lex, Exp.Par
+ other-extensions: TypeSynonymInstances, FlexibleInstances, GeneralizedNewtypeDeriving, TupleSections, CPP, MagicHash
+ build-depends: base >=4.8 && <4.9, containers >=0.5 && <0.6, pretty >=1.1 && <1.2, QuickCheck >=2.8 && <2.9, mtl >=2.2 && <2.3, time >=1.5 && <1.6, directory >=1.2 && <1.3, filepath >=1.4 && <1.5, haskeline >=0.7 && <0.8, array >=0.5 && <0.6
+ -- hs-source-dirs:
+ build-tools: alex, happy, bnfc
+ default-language: Haskell98