Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.368 kb
> {-# LANGUAGE OverloadedStrings #-}
> module Part2 where
> import Snap.Snaplet
> data Foo = Foo
>
> data Bar = Bar
>
> fooInit :: SnapletInit b Foo
> fooInit = makeSnaplet "foo" "Foo snaplet" Nothing $ do
> return Foo
>
> barInit :: SnapletLens b Foo -> SnapletInit b Bar
> barInit h = makeSnaplet "bar" "Bar snaplet" Nothing $ do
> return Bar
Jump to Line
Something went wrong with that request. Please try again.