Skip to content

Commit

Permalink
enable TypeApplications for docspec on GHC < 9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
byorgey committed Jul 26, 2023
1 parent b8e5e05 commit 61614e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Swarm/Game/Exception.hs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ formatIncapableFix = \case
-- >>> import Control.Carrier.Throw.Either (runThrow)
-- >>> import Control.Algebra (run)
-- >>> import Swarm.Game.Failure (LoadingFailure)
-- >>> :set -XTypeApplications
-- >>> w = mkEntity (defaultEntityDisplay 'l') "magic wand" [] [] [CAppear]
-- >>> r = mkEntity (defaultEntityDisplay 'o') "the one ring" [] [] [CAppear]
-- >>> m = fromRight mempty . run . runThrow @LoadingFailure $ buildEntityMap [w,r]
Expand Down

0 comments on commit 61614e7

Please sign in to comment.