This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- While building package twitter-conduit-0.2.2.2 using: | |
/home/tune/.stack/programs/x86_64-linux/ghc-8.0.2/bin/ghc --make -odir /tmp/stack2493/twitter-conduit-0.2.2.2/.stack-work/dist/x86_64-linux/Cabal-1.24.2.0/setup -hidir /tmp/stack2493/twitter-conduit-0.2.2.2/.stack-work/dist/x86_64-linux/Cabal-1.24.2.0/setup -i -i. -package=Cabal-1.24.2.0 -clear-package-db -global-package-db -package-db=/home/tune/.stack/snapshots/x86_64-linux/lts-9.19/8.0.2/pkgdb /tmp/stack2493/twitter-conduit-0.2.2.2/Setup.hs /home/tune/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -main-is StackSetupShim.mainOverride -o /tmp/stack2493/twitter-conduit-0.2.2.2/.stack-work/dist/x86_64-linux/Cabal-1.24.2.0/setup/setup -threaded | |
Process exited with code: ExitFailure 1 | |
Logs have been written to: /home/tune/Documents/Program/Haskell/secretary-bot/.stack-work/logs/twitter-conduit-0.2.2.2.log | |
[1 of 2] Compiling Main ( /tmp/stack2493/twitter-conduit-0.2.2.2/Setup.hs, /tmp/stack2493/twitter-conduit-0.2.2.2/.stack-wo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Control.Monad | |
data Sex = Man | Woman deriving (Show, Eq) | |
data Student = Student | |
{ getName :: String | |
, getSex :: Sex | |
} deriving (Show, Eq) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE RankNTypes #-} | |
module Main where | |
import Control.Lens | |
import Data.List | |
finding :: (a -> Bool) -> Lens' [a] (Maybe a) | |
finding f = lens (find f) $ setToList f | |
setToList :: (a -> Bool) -> [a] -> (Maybe a) -> [a] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Safe | |
import Control.Applicative | |
main :: IO () | |
main = do | |
print $ sample ([] :: [Int]) | |
print $ sample [1] | |
print $ sample [1,2] | |
print $ sample [1,2,3,4,5] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Safe | |
import Control.Applicative | |
main :: IO () | |
main = do | |
print $ sample ([] :: [Int]) | |
print $ sample [1] | |
print $ sample [1,2] | |
print $ sample [1,2,3,4,5] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
// This object will hold all exports. | |
var Haste = {}; | |
/* Constructor functions for small ADTs. */ | |
function T0(t){this._=t;} | |
function T1(t,a){this._=t;this.a=a;} | |
function T2(t,a,b){this._=t;this.a=a;this.b=b;} | |
function T3(t,a,b,c){this._=t;this.a=a;this.b=b;this.c=c;} | |
function T4(t,a,b,c,d){this._=t;this.a=a;this.b=b;this.c=c;this.d=d;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 日比野さんの資料 | |
1. 出来る事を確認 | |
2. 中身の責任を簡単な説明 | |
3. ディレクトリ構成のざっくりした説明 | |
# 面白いモジュール | |
##パッケージとか |
NewerOlder