Skip to content

Commit

Permalink
Make printType return Text instead of Doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
thealmarty committed Jan 18, 2022
1 parent 3497c20 commit 7833acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plutus-core/plutus-core/src/PlutusCore.hs
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,14 @@ printType :: (AsTypeError
DefaultFun
SourcePos,
MonadQuote f, MonadError err f) =>
BSL.ByteString -> f (Doc ann)
BSL.ByteString -> f T.Text
printType bs = do
case runQuoteT $ parseScoped bs of
Left peb -> pure $ error $ "errorBundlePretty peb"
Right pro -> do
config <- getDefTypeCheckConfig topSourcePos
ty <- inferTypeOfProgram config pro
pure $ pretty ty
pure $ pack $ show $ pretty ty


-- | Parse and rewrite so that names are globally unique, not just unique within
Expand Down

0 comments on commit 7833acb

Please sign in to comment.