8f8dbecea5
- RecipeSearchEntry: replace genericToJSON ToJSON with Fleece schema using object combinators (required, optionalNullable, list text) - SchemaOrgRecipe: replace manual FromJSON instance with Fleece decoder that reuses existing helper functions for quirky fields - Html.hs: use Fleece.Aeson.Encoder.encode instead of Data.Aeson.encode - stack.yaml: add shrubbery + json-fleece extra-deps - package.yaml: add json-fleece-aeson + json-fleece-core deps - Remove unused LANGUAGE pragmas and redundant brackets
83 lines
1.5 KiB
YAML
83 lines
1.5 KiB
YAML
name: roux-server
|
|
version: 0.1.0
|
|
synopsis: Personal/family recipe management site
|
|
description: A low-friction recipe manager using Cooklang files,
|
|
with cook history tracking and search.
|
|
author: James Brechtel
|
|
maintainer: james@flipstone.com
|
|
copyright: 2026 James Brechtel
|
|
license: BSD-3-Clause
|
|
|
|
default-extensions:
|
|
- DerivingStrategies
|
|
- LambdaCase
|
|
- OverloadedStrings
|
|
- TupleSections
|
|
|
|
ghc-options:
|
|
- -Wall
|
|
- -Werror
|
|
- -Wcompat
|
|
- -Widentities
|
|
- -Wincomplete-record-updates
|
|
- -Wincomplete-uni-patterns
|
|
- -Wmissing-export-lists
|
|
- -Wmissing-home-modules
|
|
- -Wpartial-fields
|
|
- -Wredundant-constraints
|
|
|
|
dependencies:
|
|
- base >= 4.7 && < 5
|
|
- aeson
|
|
- json-fleece-aeson
|
|
- json-fleece-core
|
|
- blaze-html
|
|
- blaze-markup
|
|
- bytestring
|
|
- containers
|
|
- directory
|
|
- filepath
|
|
- http-types
|
|
- optparse-applicative
|
|
- parsec
|
|
- text
|
|
- time
|
|
- wai
|
|
- warp
|
|
|
|
library:
|
|
source-dirs: src
|
|
|
|
executables:
|
|
roux-server:
|
|
main: Main.hs
|
|
source-dirs: app
|
|
ghc-options:
|
|
- -threaded
|
|
- -rtsopts
|
|
- -with-rtsopts=-N
|
|
dependencies:
|
|
- optparse-applicative
|
|
- roux-server
|
|
- unix
|
|
check-recipes:
|
|
main: Main.hs
|
|
source-dirs: app/check-recipes
|
|
dependencies:
|
|
- directory
|
|
- filepath
|
|
- roux-server
|
|
- text
|
|
|
|
tests:
|
|
roux-server-test:
|
|
main: Spec.hs
|
|
source-dirs: test
|
|
dependencies:
|
|
- hspec
|
|
- roux-server
|
|
- tasty
|
|
- tasty-golden
|
|
- tasty-hspec
|
|
- tasty-hunit
|