This website works better with JavaScript.
Home
Explore
Help
Sign In
mitchty
/
dotfiles
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Update haskell setup.
cray
Mitch Tishmack
11 years ago
parent
7640d18cae
commit
fd230e41e4
5 changed files
with
31 additions
and
1 deletions
Split View
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
View File
@@ -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
View File
@@ -1 +1,5 @@
:set prompt "λ "
:set -XPackageImports
:set -XOverloadedStrings
:set -XScopedTypeVariables -XRankNTypes
:l ~/.ghc.hs
+ 1
- 1
haskell/.profile.d/10-path-haskell.sh
View File
@@ -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
View File
@@ -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
View File
@@ -0,0 +1,2 @@
# haskell/.profile.d/99-alias-haskell.sh
alias ghce="ghc -e ':l ~/.ghc.hs' -e"
Write
Preview
Loading…
Cancel
Save