-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update entire project to use qualified do notation where relevant
- Loading branch information
1 parent
37cb893
commit 291fe12
Showing
27 changed files
with
238 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
module Examples.HelloHyper where | ||
|
||
import Prelude | ||
import Control.Monad.Indexed ((:*>)) | ||
import Control.Monad.Indexed.Qualified as Ix | ||
import Effect (Effect) | ||
import Hyper.Node.Server (defaultOptionsWithLogging, runServer) | ||
import Hyper.Response (closeHeaders, respond, writeStatus) | ||
import Hyper.Status (statusOK) | ||
|
||
main :: Effect Unit | ||
main = | ||
let app = writeStatus statusOK | ||
:*> closeHeaders | ||
:*> respond "Hello, Hyper!" | ||
let app = Ix.do | ||
writeStatus statusOK | ||
closeHeaders | ||
respond "Hello, Hyper!" | ||
in runServer defaultOptionsWithLogging {} app |
Oops, something went wrong.