Skip to content

Instantly share code, notes, and snippets.

@asheshambasta
Last active October 25, 2020 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asheshambasta/423fd27b04c37e2a8f14bf84068f139a to your computer and use it in GitHub Desktop.
Save asheshambasta/423fd27b04c37e2a8f14bf84068f139a to your computer and use it in GitHub Desktop.
{ system ? builtins.currentSystem }:
let
sources = import ./nix/sources.nix;
rp = import sources.reflex-platform { inherit system; };
in rp.project ({ pkgs, ... }: {
useWarp = true;
withHoogle = false;
packages = { fht-frontend = ./fht-frontend;
fht-data = ./fht-data;
fht-api = ./fht-api;
fht-backend = ./fht-backend;
};
shells = {
ghc = [ "fht-frontend" "fht-backend" "fht-data" "fht-api" ];
ghcjs = [ "fht-frontend" "fht-data" "fht-api" ];
};
overrides = self: super: {
inherit (sources) bulmex reflex-dom-helpers;
};
})
cabal-version: >=1.10
name: fht-frontend
version: 0.1.0.0
license: BSD3
license-file: LICENSE
author: Ashesh Ambasta
maintainer: ashesh@asheshambasta.com
build-type: Simple
extra-source-files: README.md
executable fht-frontend
hs-source-dirs: src
main-is: Main.hs
build-depends:
base
, reflex
, reflex-dom
, reflex-dom-helpers
, jsaddle-warp
, bulmex
-- network-uri is a depedency for bulma. HeadSettings uses types from it.
-- https://hackage.haskell.org/package/bulmex-4.0.0/docs/Reflex-Bulmex-Html.html#t:HeadSettings
-- , network-uri
, text
, protolude
, containers
, lens
, data-default-class
, witherable
-- the frontend needs the data types.
, fht-data
-- and the API for client functions.
, fht-api
other-modules:
Frontend.Shared
Frontend.Nav
Frontend.Shared.Widgets
Frontend.Shared.Widgets.Bulma
Lib.Reflex.Buttons
Lib.Reflex.Elements
Lib.Reflex.Clicks
default-extensions:
DataKinds
FlexibleContexts
NoImplicitPrelude
LambdaCase
OverloadedStrings
ScopedTypeVariables
GADTs
TypeFamilies
DerivingVia
RecordWildCards
PackageImports
ViewPatterns
ghc-options: -Wall -threaded -Wno-unused-do-bind
if impl(ghcjs -any)
ghc-options: -dedupe
cpp-options: -DGHCJS_BROWSER
default-language: Haskell2010
if os(osx)
ghc-options: -dynamic
{
"bulmex": {
"branch": "asheshambasta/feature/bounds",
"description": "reflex infused with bulma",
"homepage": null,
"owner": "asheshambasta",
"repo": "bulmex",
"rev": "fbe4c932aebeb1b7d3a45abc881f4320fb529738",
"sha256": "1lvq9f0ny7v5idj8nxbiam5vwcivh497qqsj52zmi1bni8c4pf4q",
"type": "tarball",
"url": "https://github.com/asheshambasta/bulmex/archive/fbe4c932aebeb1b7d3a45abc881f4320fb529738.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"niv": {
"branch": "master",
"description": "Easy dependency management for Nix projects",
"homepage": "https://github.com/nmattia/niv",
"owner": "nmattia",
"repo": "niv",
"rev": "9d35b9e4837ab88517210b1701127612c260eccf",
"sha256": "0q50xhnm8g2yfyakrh0nly4swyygxpi0a8cb9gp65wcakcgvzvdh",
"type": "tarball",
"url": "https://github.com/nmattia/niv/archive/9d35b9e4837ab88517210b1701127612c260eccf.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs": {
"branch": "release-20.03",
"description": "Nix Packages collection",
"homepage": "",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d74573d8ae6f02ef0ac1299c862d1b762ba0aad1",
"sha256": "008xyc2yzaw8m1ikjq04fsp1rhcfn2a7zn445kwqqngb5vs7w8b6",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/d74573d8ae6f02ef0ac1299c862d1b762ba0aad1.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"reflex-dom-helpers": {
"branch": "asheshambasta/feature/nix",
"description": "Element helpers for reflex-dom",
"homepage": null,
"owner": "asheshambasta",
"repo": "reflex-dom-helpers",
"rev": "c4b3592f6ca7ae56470a2c05b048edc208ac9384",
"sha256": "1rx4ayk0ww4k86w8qlzc7agw7qs5syv70626gm2a356jrg5mxbvm",
"type": "tarball",
"url": "https://github.com/asheshambasta/reflex-dom-helpers/archive/c4b3592f6ca7ae56470a2c05b048edc208ac9384.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"reflex-platform": {
"branch": "rc/0.6.0.0",
"description": "A curated package set and set of tools that let you build Haskell packages so they can run on a variety of platforms. reflex-platform is built on top of the nix package manager.",
"homepage": "https://reflex-frp.org",
"owner": "reflex-frp",
"repo": "reflex-platform",
"rev": "b14992ae74cac755f0e972569434c71ad35489eb",
"sha256": "0znbjnzmv00mjyl2w8lpw10v9qmi5dffhzm8jqm6ypgil5xfylx3",
"type": "tarball",
"url": "https://github.com/reflex-frp/reflex-platform/archive/b14992ae74cac755f0e972569434c71ad35489eb.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment