aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2021-07-23 22:11:17 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2021-07-23 22:13:43 +0100
commit318edd7c95b841024c2f7cfc7478aa9c601e12e5 (patch)
tree323f7b94ea880c9fd2e9cff5a82f4a5c790b8a2d
parent09940ff8297ccbe4e061a25b1cfd7dfa96f6950b (diff)
downloadnumberdisplay-318edd7c95b841024c2f7cfc7478aa9c601e12e5.tar.gz
numberdisplay-318edd7c95b841024c2f7cfc7478aa9c601e12e5.tar.bz2
numberdisplay-318edd7c95b841024c2f7cfc7478aa9c601e12e5.zip
(General)~moved cli files into seperate folder to make space for website
-rw-r--r--cli/Main.hs (renamed from Main.hs)6
-rw-r--r--cli/Makefile (renamed from Makefile)2
2 files changed, 3 insertions, 5 deletions
diff --git a/Main.hs b/cli/Main.hs
index e8b2927..2c7aa7d 100644
--- a/Main.hs
+++ b/cli/Main.hs
@@ -15,14 +15,12 @@ flagHandlerF :: [String] -> Int -> String -> ([String] -> String) -> String
flagHandlerF args (-1) error fmessage =
if (length args) == 0
then error
- else
- (fmessage args)
+ else fmessage args
flagHandlerF args nargs error fmessage =
if (length args) /= nargs
then error
- else
- (fmessage args)
+ else fmessage args
flagHandler :: String -> [String] -> String
diff --git a/Makefile b/cli/Makefile
index 8489a46..827617d 100644
--- a/Makefile
+++ b/cli/Makefile
@@ -1,5 +1,5 @@
CC=ghc
-FILES=Main.hs Math.hs
+FILES=Main.hs ../Math.hs
OUT=nd
$(OUT): $(FILES)