refactor[core]: Ast
module is now Core
This commit is contained in:
parent
13c3e4d007
commit
45c02e7e54
10 changed files with 24 additions and 24 deletions
23
src/Language/Scalie/Core/Expression.hs
Normal file
23
src/Language/Scalie/Core/Expression.hs
Normal file
|
@ -0,0 +1,23 @@
|
|||
{-# LANGUAGE Safe #-}
|
||||
{-# LANGUAGE InstanceSigs #-}
|
||||
module Language.Scalie.Core.Expression (Expression(..)) where
|
||||
|
||||
import Prelude (Integer)
|
||||
import Data.Kind (Type)
|
||||
import Text.Show (Show)
|
||||
import Text.Read (Read)
|
||||
import Data.Eq (Eq)
|
||||
import Test.QuickCheck (Arbitrary (arbitrary), Gen, oneof)
|
||||
import Data.Functor ((<$>))
|
||||
|
||||
type Expression :: Type
|
||||
data Expression
|
||||
= RawInt Integer
|
||||
deriving stock (Show, Read, Eq)
|
||||
|
||||
instance Arbitrary Expression where
|
||||
arbitrary :: Gen Expression
|
||||
arbitrary = oneof
|
||||
[ RawInt <$> arbitrary
|
||||
]
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue