This file contains hidden or 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
import Control.Arrow | |
main = return () | |
printFile = readFile >>> putStr |
This file contains hidden or 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
{ pkgs }: { | |
ryantmEnv = pkgs.buildEnv { | |
name = "ryantm"; | |
paths = [ | |
firefox | |
chromium-stable | |
thunderbird | |
]; | |
}; |
This file contains hidden or 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
{ pkgs }: { | |
packageOverrides = pkgs: rec { | |
ryantmEnv = pkgs.buildEnv { | |
name = "ryantm"; | |
paths = with pkgs; [ | |
firefox | |
chromium | |
thunderbird | |
]; |
This file contains hidden or 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
pkgs: { | |
firefox = { | |
enableGnash = true; | |
}; | |
packageOverrides = pkgs: { | |
ryantm = pkgs.buildEnv { | |
name = "ryantm"; | |
paths = with pkgs; [ | |
firefox | |
chromium |
This file contains hidden or 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
newtype FizzBuzz = FizzBuzz Int | |
instance Show FizzBuzz where | |
show (FizzBuzz i) | |
| iDivisibleBy 15 = "Fizz Buzz" | |
| iDivisibleBy 5 = "Buzz" | |
| iDivisibleBy 3 = "Fizz" | |
| otherwise = show i | |
where | |
iDivisibleBy n = i `rem` n == 0 |
This file contains hidden or 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
$ cabal install --only-dep --reinstall | |
Resolving dependencies... | |
All the requested packages are already installed: | |
Use --reinstall if you want to reinstall anyway. |
This file contains hidden or 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
test/Spec.hs:5:8: | |
Could not find module ‘Test.Hspec’ | |
It is a member of the hidden package ‘hspec2-0.4.2’. | |
Use -v to see a list of the files searched for. | |
test/Talklibre/StoreSpec.hs:8:8: | |
Could not find module ‘Test.Hspec.QuickCheck’ | |
It is a member of the hidden package ‘hspec2-0.4.2’. | |
Use -v to see a list of the files searched for. |
This file contains hidden or 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
f :: a -> String | |
f a = "Cool" | |
g :: (a -> String) -> String | |
g h = h 1 | |
main = do | |
putStrLn (f 1) | |
putStrLn (g f) |
This file contains hidden or 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
[root@rtmnix:/etc/nixos]# NIX_PATH="m=blah" nix-instantiate --eval -E '<m>' | |
error: file ‘m’ was not found in the Nix search path (add it using $NIX_PATH or -I) |
This file contains hidden or 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
ryantm@ryantm0j132 ~/sandbox/simple-shared (master)$ ./build.sh | |
+ set -e | |
+ cd library | |
+ mkdir build | |
+ cd build | |
+ cmake ../ -DCMAKE_INSTALL_PREFIX=../../executable -Wno-dev | |
-- The C compiler identification is GNU 4.9.2 | |
-- The CXX compiler identification is GNU 4.9.2 | |
-- Check for working C compiler: /usr/bin/cc | |
-- Check for working C compiler: /usr/bin/cc -- works |