Skip to content

Commit

Permalink
fix docspec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
byorgey committed Jul 26, 2023
1 parent d443f28 commit bb606b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Swarm/Game/Exception.hs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ formatIncapableFix = \case
-- >>> import Data.Either (fromRight)
-- >>> import Control.Carrier.Throw.Either (runThrow)
-- >>> import Control.Algebra (run)
-- >>> import Swarm.Game.Failure (LoadingFailure)
-- >>> w = mkEntity (defaultEntityDisplay 'l') "magic wand" [] [] [CAppear]
-- >>> r = mkEntity (defaultEntityDisplay 'o') "the one ring" [] [] [CAppear]
-- >>> m = fromRight mempty . run . runThrow $ buildEntityMap [w,r]
-- >>> m = fromRight mempty . run . runThrow @LoadingFailure $ buildEntityMap [w,r]
-- >>> incapableError cs t = putStr . unpack $ formatIncapable m FixByEquip cs t
--
-- >>> incapableError (R.singletonCap CGod) (TConst As)
Expand Down

0 comments on commit bb606b4

Please sign in to comment.