Denna sida fungerar bättre med Javascript igång.
Startsida
Utforska
Hjälp
Logga in
mitchty
/
dotfiles
Bevaka
1
Stjärnmärk
0
Förgrening
0
Kod
Ärenden
0
Pull-förfrågningar
0
Släpp
0
Wiki
Aktiviteter
Bläddra i källkod
Update haskell setup.
cray
Mitch Tishmack
11 år sedan
förälder
7640d18cae
incheckning
fd230e41e4
5 ändrade filer
med
31 tillägg
och
1 borttagningar
Delad Vy
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
Visa fil
@@ -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
Visa fil
@@ -1 +1,5 @@
:set prompt "λ "
:set -XPackageImports
:set -XOverloadedStrings
:set -XScopedTypeVariables -XRankNTypes
:l ~/.ghc.hs
+ 1
- 1
haskell/.profile.d/10-path-haskell.sh
Visa fil
@@ -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
Visa fil
@@ -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
Visa fil
@@ -0,0 +1,2 @@
# haskell/.profile.d/99-alias-haskell.sh
alias ghce="ghc -e ':l ~/.ghc.hs' -e"
Skriv
Förhandsgranska
Laddar…
Avbryt
Spara