Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Builtins] No-legacy unlifting #4510

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
Remove a bang
  • Loading branch information
effectfully committed Mar 21, 2022
commit e3073ec34ef02e8fbe74c5816d001f0797674a47
3 changes: 1 addition & 2 deletions plutus-core/plutus-core/src/PlutusCore/Builtin/Runtime.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}

Expand Down Expand Up @@ -121,7 +120,7 @@ toBuiltinRuntime cost (BuiltinMeaning sch f exF) =
go schB $ \sch' toF' toExF' -> k
(RuntimeSchemeArrow sch')
(\getF x -> do
let !getVal = readKnown (Just ()) x
let getVal = readKnown (Just ()) x
case unliftMode of
UnliftImmediately -> getVal <&> \val -> toF' (($ val) <$> getF)
UnliftWhenSaturated -> pure . toF' $ getF <*> getVal)
Expand Down