aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--Expr.hs8
-rw-r--r--RealCalc.hs8
-rw-r--r--hsc.cabal (renamed from realCalc.cabal)12
-rw-r--r--main.hs8
5 files changed, 20 insertions, 18 deletions
diff --git a/.gitignore b/.gitignore
index e49fa12..6283f66 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,5 @@
.cabal-sandbox
cabal.sandbox.config
dist
+shell.nix
+result
diff --git a/Expr.hs b/Expr.hs
index 6e12a87..06bbea6 100644
--- a/Expr.hs
+++ b/Expr.hs
@@ -1,20 +1,20 @@
{-
- Copyright 2018 Raymond Hogenson
-
- - This file is part of RealCalc.
+ - This file is part of HSC.
- - RealCalc is free software: you can redistribute it and/or modify
+ - HSC is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- - RealCalc is distributed in the hope that it will be useful,
+ - HSC is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- - along with RealCalc. If not, see <http://www.gnu.org/licenses/>.
+ - along with HSC. If not, see <http://www.gnu.org/licenses/>.
-}
module Expr (parseE, Expr(..)) where
diff --git a/RealCalc.hs b/RealCalc.hs
index df2e06d..ac8ecb5 100644
--- a/RealCalc.hs
+++ b/RealCalc.hs
@@ -3,20 +3,20 @@
{-
- Copyright 2018 Raymond Hogenson
-
- - This file is part of RealCalc.
+ - This file is part of HSC.
- - RealCalc is free software: you can redistribute it and/or modify
+ - HSC is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- - RealCalc is distributed in the hope that it will be useful,
+ - HSC is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- - along with RealCalc. If not, see <http://www.gnu.org/licenses/>.
+ - along with HSC. If not, see <http://www.gnu.org/licenses/>.
-}
module RealCalc (calculate) where
diff --git a/realCalc.cabal b/hsc.cabal
index 26d9e42..1f1f883 100644
--- a/realCalc.cabal
+++ b/hsc.cabal
@@ -1,8 +1,8 @@
--- Initial realCalc.cabal generated by cabal init. For further
+-- Initial hsc.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
-- The name of the package.
-name: realCalc
+name: hsc
-- The package version. See the Haskell package versioning policy (PVP)
-- for standards guiding when and how versions should be incremented.
@@ -49,18 +49,18 @@ extra-source-files: ChangeLog.md
cabal-version: >=1.10
-executable realCalc
+executable hsc
-- .hs or .lhs file containing the Main module.
main-is: main.hs
-- Modules included in this executable, other than Main.
- -- other-modules:
+ other-modules: Expr RealCalc
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
-- Other library packages from which modules are imported.
- build-depends: base >=4.9 && <5.0, containers >=0.5 && <1.0, parsec >=3.1 && <4.0, gtk3 >=0.14.8 && <1.0.0
+ build-depends: base >=4.9 && <5.0, containers >=0.5 && <1.0, parsec >=3.1 && <4.0, gtk3 >=0.14.6 && <1.0.0
-- Directories containing source files.
-- hs-source-dirs:
@@ -68,4 +68,4 @@ executable realCalc
-- Base language which the package is written in.
default-language: Haskell2010
- ghc-options: -Wall
+ ghc-options: -Wall -rtsopts
diff --git a/main.hs b/main.hs
index 014f1ac..ef76160 100644
--- a/main.hs
+++ b/main.hs
@@ -3,20 +3,20 @@
{-
- Copyright 2018 Raymond Hogenson
-
- - This file is part of RealCalc.
+ - This file is part of HSC.
- - RealCalc is free software: you can redistribute it and/or modify
+ - HSC is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- - RealCalc is distributed in the hope that it will be useful,
+ - HSC is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- - along with RealCalc. If not, see <http://www.gnu.org/licenses/>.
+ - along with HSC. If not, see <http://www.gnu.org/licenses/>.
-}
import Graphics.UI.Gtk