Skip to content

Commit

Permalink
fix doctests on 9.0.1
Browse files Browse the repository at this point in the history
Error messages changed, adapted to match both variants
  • Loading branch information
tek committed Jun 25, 2021
1 parent 2d0f936 commit e25d120
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ core-html/
dist-newstyle
*.hi
*.o
/result
/result-doc
2 changes: 1 addition & 1 deletion nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let
c2n = name: src: pkgs.haskell.lib.disableLibraryProfiling (self.callCabal2nix name (filter src) {});
hackage = pkg: ver: sha256: self.callHackageDirect { inherit pkg ver sha256; } {};
in {
polysemy = pkgs.haskell.lib.dontCheck (c2n "polysemy" ../.);
polysemy = c2n "polysemy" ../.;
polysemy-plugin = c2n "polysemy-plugin" ../polysemy-plugin;
first-class-families =
hackage "first-class-families" "0.8.0.1" "0h1rxbc7zsxrlhx5xcl58wjx3qi2wny8wb3sk7c1qnydf4ckcckz";
Expand Down
8 changes: 4 additions & 4 deletions test/TypeErrors.hs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ tooFewArgumentsReinterpret = ()
-- ...
-- ... Unhandled effect 'Embed IO'
-- ...
-- ... Expected type: Sem '[Embed m] (Bool, ())
-- ... Actual type: Sem '[] (Bool, ())
-- ... Expected... Sem '[Embed m] (Bool, ())
-- ... Actual... Sem '[] (Bool, ())
-- ...
runningTooManyEffects = ()

Expand All @@ -119,8 +119,8 @@ ambiguousSendInConcreteR = ()
-- in runM $ lowerResource foo
-- :}
-- ...
-- ... Couldn't match expected type ...
-- ... with actual type ...
-- ... Couldn't match expected type...
-- ... with actual type...
-- ... Probable cause: ... is applied to too few arguments
-- ...
missingArgumentToRunResourceInIO = ()
Expand Down

0 comments on commit e25d120

Please sign in to comment.