polysemy/test/DoctestSpec.hs

44 lines
906 B
Haskell
Raw Normal View History

{-# 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"
, "-package type-errors"
#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/Error.hs"
, "src/Polysemy/Output.hs"
, "src/Polysemy/Reader.hs"
, "src/Polysemy/Resource.hs"
, "src/Polysemy/State.hs"
, "src/Polysemy/Trace.hs"
]