Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
Apua
Kirjaudu sisään
mitchty
/
dotfiles
Tarkkaile
1
Äänestä
0
Fork
0
Koodi
Ongelmat
0
Pull-pyynnöt
0
Julkaisut
0
Wiki
Toiminta
Selaa lähdekoodia
Update haskell setup.
cray
Mitch Tishmack
11 vuotta sitten
vanhempi
7640d18cae
commit
fd230e41e4
5 muutettua tiedostoa
jossa
31 lisäystä
ja
1 poistoa
Jaettu näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-0
haskell/.ghc.hs
+4
-0
haskell/.ghci
+1
-1
haskell/.profile.d/10-path-haskell.sh
+15
-0
haskell/.profile.d/20-functions-haskell.sh
+2
-0
haskell/.profile.d/99-alias-haskell.sh
+ 9
- 0
haskell/.ghc.hs
Näytä tiedosto
@@ -0,0 +1,9 @@
import Control.Applicative
import Control.Monad
import Data.Monoid
import Data.Maybe
import Data.List
import Data.Bool
import qualified Data.Set as S
import qualified Data.Map as M
import qualified Data.Text as T
+ 4
- 0
haskell/.ghci
Näytä tiedosto
@@ -1 +1,5 @@
:set prompt "λ "
:set -XPackageImports
:set -XOverloadedStrings
:set -XScopedTypeVariables -XRankNTypes
:l ~/.ghc.hs
+ 1
- 1
haskell/.profile.d/10-path-haskell.sh
Näytä tiedosto
@@ -1,3 +1,3 @@
# haskell/.profile.d/10-path-haskell.sh
PATH="${
HOME}/.cabal/bin:${PATH}:${HOME}/.cabin
/bin"
PATH="${
PATH}:${HOME}/.cabal
/bin"
export PATH
+ 15
- 0
haskell/.profile.d/20-functions-haskell.sh
Näytä tiedosto
@@ -0,0 +1,15 @@
# haskell/.profile.d/20-functions-haskell.sh
hmap()
{
ghc -e "interact ($*)"
}
hmapl()
{
hmap "unlines.($*).lines"
}
hmapw()
{
hmapl "map (unwords.($*).words)"
}
+ 2
- 0
haskell/.profile.d/99-alias-haskell.sh
Näytä tiedosto
@@ -0,0 +1,2 @@
# haskell/.profile.d/99-alias-haskell.sh
alias ghce="ghc -e ':l ~/.ghc.hs' -e"
Kirjoita
Esikatselu
Ladataan…
Peruuta
Tallenna