{-# LANGUAGE OverloadedStrings #-} module Combined where import Test.Tasty (TestTree, defaultMain, testGroup) import Test.Tasty.HUnit ((@?=), testCase) import Nero import Data.Text.Lazy (Text) name :: Request -> Maybe Text name = preview (_GET . path . prefixed "/hello/") surname :: Request -> Maybe Text surname = preview (param "surname") app1 :: Request -> Maybe Response app1 = preview (_GET . path . prefixed "/hello/") <&> fmap (\n -> ok $ "