This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DataKinds, TypeOperators #-} | |
{-# OPTIONS_GHC -fno-warn-orphans #-} | |
module Kraken.Daemon where | |
import Control.Monad.Trans.Either | |
import Data.Proxy | |
import Network.Wai | |
import Network.Wai.Handler.Warp.Run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
filterHaskellSource = builtins.filterSource (path: type: | |
type != "unknown" && | |
baseNameOf path != ".git" && | |
baseNameOf path != "result" && | |
baseNameOf path != "dist"); | |
in | |
{ pkgs ? import <nixpkgs> { } | |
, src ? filterHaskellSource ./. | |
}: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cabal configure && cabal build && cabal haddock --hyperlink-source \ | |
--html-location='/package/$pkg-$version/docs' \ | |
--contents-location='/package/$pkg' | |
S=$? | |
if [ "${S}" -eq "0" ]; then | |
cd "dist/doc/html" | |
DDIR="${1}-${2}-docs" | |
cp -r "${1}" "${DDIR}" && tar -c -v -z --format=ustar -f "${DDIR}.tar.gz" "${DDIR}" | |
CS=$? |
NewerOlder