BSD-3-Clause licensed by Tony Day
Maintained by Tony Day
This version can be pinned in stack with:web-rep-0.14.0.1@sha256:0939f2f1aed98b68d303210a225b0b94cced6b9ada384227dfb89327bcffa302,2663

Module documentation for 0.14.0.1

  • Web
    • Web.Rep
      • Web.Rep.Bootstrap
      • Web.Rep.Examples
      • Web.Rep.Html
        • Web.Rep.Html.Input
      • Web.Rep.Internal
        • Web.Rep.Internal.FlatParse
      • Web.Rep.Page
      • Web.Rep.Render
      • Web.Rep.Server
      • Web.Rep.Shared
      • Web.Rep.SharedReps
      • Web.Rep.Socket

web-rep

img img

Various functions and representations for a web page.

The best way to understand functionality is via running the example app:

cabal install
web-rep-example --shared

… and then tune in to:

http://localhost:9160/

library reference

Development

(setq haskell-process-args-cabal-repl '("web-rep:exe:web-rep-example"))
: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

Changes

0.14

  • Added Web.Rep.Internal.FlatParse (due to markup-parse-2.0 changes)

0.13

  • added sharedPage
  • modified to use modern bootstrap methods

0.12.1

  • Changed the order of Page elements, so that inline css over-rides libraries.
  • Added cssColorScheme to API

0.12

  • markupInput replaces inputToHtml as per markup-parse
  • ToByteString introduced
  • upgrade to box-socket-0.5

0.11

  • Removed clay, lucid as dependencies
  • refactored to markup-parse as markup representation.

0.10.2

  • GHC 9.6.2 upgrade

0.8.0

  • Removed numhask dependencies