-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
module Main where | ||
|
||
import Lib | ||
|
||
main :: IO () | ||
main = someFunc | ||
main = return () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,4 @@ tests: | |
- -with-rtsopts=-N | ||
dependencies: | ||
- typedMiniLang | ||
- hspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module Expr where | ||
|
||
type Variable = String | ||
|
||
data Expr = | ||
EVar Variable | ||
| ECBool Bool | ||
| ECInt Int | ||
| EAdd Expr Expr | ||
| ESub Expr Expr | ||
| EMul Expr Expr | ||
| EDiv Expr Expr | ||
| EAnd Expr Expr | ||
| EOr Expr Expr | ||
| ENot Expr | ||
| ELT Expr Expr | ||
| EEqInt Expr Expr | ||
| EIf Expr Expr Expr | ||
| ELet Variable Expr Expr | ||
deriving (Show) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module ExprSpec (spec) where | ||
|
||
import Test.Hspec | ||
import Expr | ||
|
||
spec :: Spec | ||
spec = return () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
main :: IO () | ||
main = putStrLn "Test suite not yet implemented" | ||
{-# OPTIONS_GHC -F -pgmF hspec-discover #-} |