haskell-servant / servant

Servat is a Haskell DSL for describing, serving, querying, mocking, documenting web applications and more!
https://docs.servant.dev/
1.82k stars 411 forks source link

Not able to execute the tutorial #1530

Open clifflo opened 2 years ago

clifflo commented 2 years ago

When I use the Stack file I am able to use stack build with it. However I have changed my port to 8081 then. Afterwards I run the `stack exec myproj-exe' but it just stuck in the terminal without any output. What is happening then?

alpmestan commented 2 years ago

The tutorial (not cookbook, really the tutorial that just covers the basics) is a library, not an executable: https://github.com/haskell-servant/servant/blob/master/doc/tutorial/tutorial.cabal (and a test suite, but that's not really relevant).