-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
websocket bump, doctests added (#10)
* websocket bump, doctests added * CI fixes
- Loading branch information
1 parent
a986a38
commit da64054
Showing
10 changed files
with
141 additions
and
112 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
/docs/ | ||
/cabal.project.local* | ||
/.hkgr/ | ||
/.ghc.environment.aarch64-darwin-9.10.1 |
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,3 +1,8 @@ | ||
packages: | ||
web-rep.cabal | ||
|
||
write-ghc-environment-files: always | ||
|
||
tests: True | ||
|
||
allow-newer: websockets:containers |
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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
|
||
# Table of Contents | ||
|
||
1. [web-rep](#orgebbc06e) | ||
2. [library reference](#org8d29302) | ||
3. [Development](#orgddf3f50) | ||
|
||
|
||
<a id="orgebbc06e"></a> | ||
|
||
# web-rep | ||
|
||
[![img](https://img.shields.io/hackage/v/web-rep.svg)](https://hackage.haskell.org/package/web-rep) [![img](https://github.com/tonyday567/web-rep/workflows/haskell-ci/badge.svg)](https://github.com/tonyday567/web-rep/actions?query=workflow%3Ahaskell-ci) | ||
|
||
Various functions and representations for a web page. | ||
|
||
The best way to understand functionality is via running the example app: | ||
|
||
cabal install | ||
page-example --apptype SharedTest | ||
|
||
… and then tune in to: | ||
|
||
<http://localhost:9160/> | ||
|
||
|
||
<a id="org8d29302"></a> | ||
|
||
# library reference | ||
|
||
- [scotty](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/flags.html#flag-reference) | ||
- [bootstrap](https://getbootstrap.com/) | ||
- [bootstrap-slider](https://seiyria.com/bootstrap-slider) | ||
|
||
|
||
<a id="orgddf3f50"></a> | ||
|
||
# Development | ||
|
||
(setq haskell-process-args-cabal-repl '("web-rep:exe:web-rep-example")) | ||
|
||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides"> | ||
|
||
|
||
<colgroup> | ||
<col class="org-left" /> | ||
</colgroup> | ||
<tbody> | ||
<tr> | ||
<td class="org-left">web-rep:exe:web-rep-example</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
:r | ||
:set -Wno-type-defaults | ||
:set -Wno-name-shadowing | ||
:set -XOverloadedStrings | ||
:set -XOverloadedLabels | ||
:set -XDataKinds | ||
import Prelude | ||
import Box | ||
import Web.Rep | ||
import Optics.Core | ||
import FlatParse.Basic | ||
import MarkupParse | ||
putStrLn "ok" | ||
|
||
Ok, 11 modules loaded. | ||
ghci | ||
ok | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module Main where | ||
|
||
import System.Environment (getArgs) | ||
import Test.DocTest (mainFromCabal) | ||
import Prelude (IO, (=<<)) | ||
|
||
main :: IO () | ||
main = mainFromCabal "web-rep" =<< getArgs |
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