Skip to content

Commit

Permalink
pretty-print types on one line so they aren't cut off
Browse files Browse the repository at this point in the history
  • Loading branch information
byorgey committed Feb 11, 2024
1 parent 4f4eb7a commit 52478ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/swarm-lang/Swarm/Language/LSP/Hover.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import Swarm.Language.Context as Ctx
import Swarm.Language.Module (Module (..))
import Swarm.Language.Parse (readTerm', unTuple)
import Swarm.Language.Pipeline (ProcessedTerm (..), processParsedTerm)
import Swarm.Language.Pretty (prettyText)
import Swarm.Language.Pretty (prettyText, prettyTextLine)
import Swarm.Language.Syntax
import Swarm.Language.Typecheck (inferConst)
import Swarm.Language.Types
Expand Down Expand Up @@ -169,7 +169,7 @@ instance ExplainableType () where
eq _ _ = False

instance ExplainableType Polytype where
prettyType = prettyText
prettyType = prettyTextLine
getInnerType = fmap $ \case
(l :->: _r) -> l
(TyCmd t) -> t
Expand Down

0 comments on commit 52478ee

Please sign in to comment.