mirror of
https://github.com/polysemy-research/polysemy.git
synced 2024-12-04 07:46:37 +03:00
41 lines
850 B
Haskell
41 lines
850 B
Haskell
{-# LANGUAGE CPP #-}
|
|
|
|
module DoctestSpec where
|
|
|
|
import Test.Hspec
|
|
import Test.DocTest
|
|
|
|
spec :: Spec
|
|
spec = parallel $ describe "Error messages" $ it "should pass the doctest" $ doctest
|
|
[ "-isrc/"
|
|
, "--fast"
|
|
, "-XDataKinds"
|
|
, "-XDeriveFunctor"
|
|
, "-XFlexibleContexts"
|
|
, "-XGADTs"
|
|
, "-XLambdaCase"
|
|
, "-XPolyKinds"
|
|
, "-XRankNTypes"
|
|
, "-XScopedTypeVariables"
|
|
, "-XStandaloneDeriving"
|
|
, "-XTypeApplications"
|
|
, "-XTypeFamilies"
|
|
, "-XTypeOperators"
|
|
, "-XUnicodeSyntax"
|
|
|
|
#if __GLASGOW_HASKELL__ < 806
|
|
, "-XMonadFailDesugaring"
|
|
, "-XTypeInType"
|
|
#endif
|
|
|
|
, "test/TypeErrors.hs"
|
|
|
|
-- Modules that are explicitly imported for this test must be listed here
|
|
, "src/Polysemy.hs"
|
|
, "src/Polysemy/Output.hs"
|
|
, "src/Polysemy/Reader.hs"
|
|
, "src/Polysemy/Resource.hs"
|
|
, "src/Polysemy/State.hs"
|
|
, "src/Polysemy/Trace.hs"
|
|
]
|