Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
hbandit
Commits
5e3907ce
Commit
5e3907ce
authored
May 25, 2020
by
Valentin Reis
Browse files
[style] line wrapping and re-adding ghcide env. variables to packaging.
parent
5e906f7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
literate/tutorial.md
View file @
5e3907ce
...
@@ -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(..)
...
...
shell.nix
View file @
5e3907ce
...
@@ -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
}
"
''
;
''
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment