Skip to content

Commit

Permalink
Remove 'oneShot' from 'toBuiltinMeaning'
Browse files Browse the repository at this point in the history
  • Loading branch information
effectfully committed Jan 8, 2022
1 parent 0712da7 commit 90dded2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions plutus-core/plutus-core/src/PlutusCore/Default/Builtins.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import Data.Text.Encoding (decodeUtf8', encodeUtf8)
import Flat hiding (from, to)
import Flat.Decoder
import Flat.Encoder as Flat
import GHC.Exts (oneShot)

-- See Note [Pattern matching on built-in types].
-- TODO: should we have the commonest builtins at the front to have more compact encoding?
Expand Down Expand Up @@ -140,7 +139,7 @@ instance uni ~ DefaultUni => ToBuiltinMeaning uni DefaultFun where
toBuiltinMeaning
:: forall term. HasConstantIn uni term
=> DefaultFun -> BuiltinMeaning term BuiltinCostModel
toBuiltinMeaning = oneShot $ \case
toBuiltinMeaning = \case
AddInteger ->
makeBuiltinMeaning
((+) @Integer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ import Data.Semigroup (stimes)
import Data.Text (Text)
import Data.Word64Array.Word8
import Prettyprinter
import Universe

{- Note [Compilation peculiarities]
READ THIS BEFORE TOUCHING ANYTHING IN THIS FILE
Expand Down

0 comments on commit 90dded2

Please sign in to comment.