Skip to content

Commit

Permalink
tytime
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcardon committed Oct 17, 2023
1 parent a7eea4a commit 0fd5253
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pact-core/Pact/Core/PactValue.hs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ checkPvType ty = \case
_ -> Nothing
PCapToken _ -> Nothing
PTime _ -> case ty of
TyPrim PrimTime -> Just $ TyPrim PrimTime
TyTime -> Just $ TyTime
_ -> Nothing


Expand Down
7 changes: 3 additions & 4 deletions pact-core/Pact/Core/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Pact.Core.Type
-- , TypeScheme(..)
, pattern TyInt
, pattern TyDecimal
-- , pattern TyTime
, pattern TyTime
, pattern TyBool
, pattern TyString
, pattern TyUnit
Expand Down Expand Up @@ -60,7 +60,6 @@ instance Pretty PrimType where
pretty = \case
PrimInt -> "integer"
PrimDecimal -> "decimal"
-- PrimTime -> "time"
PrimBool -> "bool"
PrimString -> "string"
PrimGuard -> "guard"
Expand Down Expand Up @@ -103,8 +102,8 @@ pattern TyInt = TyPrim PrimInt
pattern TyDecimal :: Type
pattern TyDecimal = TyPrim PrimDecimal

-- pattern TyTime :: Type n
-- pattern TyTime = TyPrim PrimTime
pattern TyTime :: Type
pattern TyTime = TyPrim PrimTime

pattern TyBool :: Type
pattern TyBool = TyPrim PrimBool
Expand Down

0 comments on commit 0fd5253

Please sign in to comment.