Commit 5e3907ce authored by Valentin Reis's avatar Valentin Reis
Browse files

[style] line wrapping and re-adding ghcide env. variables to packaging.

parent 5e906f7b
...@@ -20,8 +20,8 @@ the string manipulating bash snippets used in this literate file are: ...@@ -20,8 +20,8 @@ the string manipulating bash snippets used in this literate file are:
``` ```
We print a warning in the output: We print a warning in the output:
> -- Do not modify. This file has been automatically generated from file literate/tutorial.md, > -- Do not modify. This file has been automatically generated from file
> -- your changes will be erased. > -- `literate/tutorial.md`, your changes will be erased.
cabal packaging for the executable file: cabal packaging for the executable file:
...@@ -45,13 +45,14 @@ build-depends: ...@@ -45,13 +45,14 @@ build-depends:
``` ```
> {-| This module serves as an introduction to the `hbandit` Multi-Armed Bandit library. > {-| This module serves as an introduction to the `hbandit` Multi-Armed Bandit
> -} > library. -}
> >
> module Bandit.Tutorial ( > module Bandit.Tutorial (
> -- *** Setup > -- *** Setup
> >
> -- | The code snippets displayed in this tutorial require the following list of extensions and modules. > -- | The code snippets displayed in this tutorial require the following list
> -- of extensions and modules.
```{.haskell pipe="tee -a Tmodule.hs | awk '{print \"> -- > \" $0}' | (echo '> -- |' ;cat - )"} ```{.haskell pipe="tee -a Tmodule.hs | awk '{print \"> -- > \" $0}' | (echo '> -- |' ;cat - )"}
{-# LANGUAGE LambdaCase #-} {-# LANGUAGE LambdaCase #-}
...@@ -214,10 +215,10 @@ printOnePassEG = putText $ ...@@ -214,10 +215,10 @@ printOnePassEG = putText $
> -- *** Contextual > -- *** Contextual
> -- > --
> -- | The algorithm class for contextual bandits is 'ContextualBandit'. This class gives > -- | The algorithm class for contextual bandits is 'ContextualBandit'. This
> -- types for a bandit game between a learner and an environment with context, where the > -- class gives types for a bandit game between a learner and an environment
> -- learner has access to a random generator and is defined via a stateful 'step' > -- with context, where the learner has access to a random generator and is
> -- function. > -- defined via a stateful 'step' function.
> , Bandit.Class.ContextualBandit(..) > , Bandit.Class.ContextualBandit(..)
......
...@@ -22,5 +22,9 @@ haskellPackages.shellFor { ...@@ -22,5 +22,9 @@ haskellPackages.shellFor {
export R_LIBS_SITE=${builtins.readFile r-libs-site} export R_LIBS_SITE=${builtins.readFile r-libs-site}
export LOCALE_ARCHIVE=${glibcLocales}/lib/locale/locale-archive export LOCALE_ARCHIVE=${glibcLocales}/lib/locale/locale-archive
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
export NIX_GHC="${haskellPackages.hbandit.env.NIX_GHC}"
export NIX_GHCPKG="${haskellPackages.hbandit.env.NIX_GHCPKG}"
export NIX_GHC_DOCDIR="${haskellPackages.hbandit.env.NIX_GHC_DOCDIR}"
export NIX_GHC_LIBDIR="${haskellPackages.hbandit.env.NIX_GHC_LIBDIR}"
''; '';
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment