mirror of
https://github.com/macocianradu/RosettaHaskellCompiler.git
synced 2026-03-18 21:10:07 +00:00
fixed cardinality of is statements
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
{-The enumerated values to specified the period, e.g. day, week.-}
|
||||
data PeriodEnum =
|
||||
{-Day-}
|
||||
D
|
||||
{-Month-}
|
||||
| M
|
||||
{-Year-}
|
||||
| Y
|
||||
|
||||
instance Show PeriodEnum where
|
||||
show D = "day"
|
||||
show M = "month"
|
||||
show Y = "year"
|
||||
@@ -1,13 +0,0 @@
|
||||
{-The enumerated values to specified the period, e.g. day, week.-}
|
||||
data EnumWithoutDisplay =
|
||||
{-Day-}
|
||||
D
|
||||
{-Month-}
|
||||
| M
|
||||
{-Year-}
|
||||
| Y
|
||||
|
||||
instance Show EnumWithoutDisplay where
|
||||
show D = "D"
|
||||
show M = "M"
|
||||
show Y = "Y"
|
||||
@@ -1,7 +0,0 @@
|
||||
data EnumWithoutDescription =
|
||||
X
|
||||
| Y
|
||||
|
||||
instance Show EnumWithoutDescription where
|
||||
show X = "xs"
|
||||
show Y = "ys"
|
||||
@@ -38,6 +38,14 @@ func Something: <"asd">
|
||||
equity1 boolean (1..1)
|
||||
valuationTime ObservationPrimitive (1..1)
|
||||
output:
|
||||
valuation ObservationPrimitive (0..*)
|
||||
valuation ObservationPrimitive (0..*)
|
||||
|
||||
assign-output: if True and False then valuationTime
|
||||
|
||||
func SomethingElse: <"dsa">
|
||||
inputs:
|
||||
valuationTime ObservationPrimitive (1..1)
|
||||
output:
|
||||
valuation ObservationPrimitive (0..1)
|
||||
|
||||
assign-output: if True and False then valuationTime
|
||||
Reference in New Issue
Block a user