Skip to content

Commit

Permalink
Move 'Lazy' to 'Runtime'
Browse files Browse the repository at this point in the history
  • Loading branch information
effectfully committed May 15, 2022
1 parent fb6a43a commit 9674d36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions plutus-core/plutus-core/src/PlutusCore/Builtin/Runtime.hs
Expand Up @@ -24,6 +24,11 @@ import Data.Array
import Data.Kind qualified as GHC (Type)
import PlutusCore.Builtin.KnownType

-- | A @data@ wrapper adding laziness on top of @a@.
data Lazy a = Lazy
{ unLazy :: ~a
}

-- | Peano numbers. Normally called @Nat@, but that is already reserved by @base@.
data Peano
= Z
Expand Down
6 changes: 0 additions & 6 deletions plutus-core/prelude/PlutusPrelude.hs
Expand Up @@ -66,7 +66,6 @@ module PlutusPrelude
, reoption
, enumeration
, tabulateArray
, Lazy (..)
, (?)
, ensure
, asksM
Expand Down Expand Up @@ -172,11 +171,6 @@ enumeration = [minBound .. maxBound]
tabulateArray :: (Bounded i, Enum i, Ix i) => (i -> a) -> Array i a
tabulateArray f = listArray (minBound, maxBound) $ map f enumeration

-- | A @data@ wrapper adding laziness on top of @a@.
data Lazy a = Lazy
{ unLazy :: a
}

newtype PairT b f a = PairT
{ unPairT :: f (b, a)
}
Expand Down

0 comments on commit 9674d36

Please sign in to comment.