Skip to content

Commit

Permalink
WIP example docstrings using curl should be ported to use hspec-wai
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Zocca committed Dec 1, 2023
1 parent 9e39efe commit 6a1fee2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doctest/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Main where

import Test.DocTest (doctest)

main :: IO ()
main = doctest [
"Web"
, "-XOverloadedStrings"
, "-XLambdaCase"
]
8 changes: 8 additions & 0 deletions scotty.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ test-suite spec
build-tool-depends: hspec-discover:hspec-discover == 2.*
GHC-options: -Wall -threaded -fno-warn-orphans

test-suite doctest
main-is: Main.hs
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: doctest
build-depends: base
, doctest

benchmark weigh
main-is: Main.hs
type: exitcode-stdio-1.0
Expand Down

0 comments on commit 6a1fee2

Please sign in to comment.