This website works better with JavaScript.
首頁
探索
說明
登入
mitchty
/
dotfiles
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Update haskell setup.
cray
Mitch Tishmack
11 年之前
父節點
7640d18cae
當前提交
fd230e41e4
共有
5 個文件被更改
,包括
31 次插入
和
1 次删除
分割檢視
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
查看文件
@@ -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
查看文件
@@ -1 +1,5 @@
:set prompt "λ "
:set -XPackageImports
:set -XOverloadedStrings
:set -XScopedTypeVariables -XRankNTypes
:l ~/.ghc.hs
+ 1
- 1
haskell/.profile.d/10-path-haskell.sh
查看文件
@@ -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
查看文件
@@ -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
查看文件
@@ -0,0 +1,2 @@
# haskell/.profile.d/99-alias-haskell.sh
alias ghce="ghc -e ':l ~/.ghc.hs' -e"
Write
Preview
Loading…
取消
儲存