Haskell project

This commit is contained in:
2026-05-18 22:00:30 -04:00
parent 39026e3f35
commit 130dc5326d
9 changed files with 301 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
{- | Top-level re-exports and application setup for Roux.
-}
module Roux
( app
, module X
) where
import qualified Network.HTTP.Types as HTTP
import qualified Network.Wai as Wai
import Roux.Types as X
-- | Build the WAI 'Application' given a path to the recipe directory.
app :: FilePath -> IO Wai.Application
app _recipeDir =
pure $ \_request respond ->
respond $
Wai.responseLBS
HTTP.status200
[("Content-Type", "text/plain")]
"Hello from Roux!"
+9
View File
@@ -0,0 +1,9 @@
{- | Core types for Roux.
-}
module Roux.Types
( -- * Types
RecipeDir (..)
) where
-- | Path to the directory containing Cooklang recipe files.
newtype RecipeDir = RecipeDir FilePath