I love the new GitHub issues, here are some ideas to make it perfect, ordered by priority:
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
#! /bin/bash | |
package_name=$(basename `pwd`) | |
log_file=./cabal-init.log | |
function fatal() { | |
echo "$1. Examine ${log_file} for more information." 2>&1 | |
exit 1 | |
} |
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
cabal exec -- ghci # starts ghci with cabal sandbox set | |
cabal exec -- runghc ... # runs runghc with cabal sandbox set |
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 FlexibleInstances #-} | |
{-# LANGUAGE TypeSynonymInstances #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
import Control.Applicative | |
class Field a where | |
fieldType :: a -> String | |
fieldRead :: String -> 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
{-# LANGUAGE | |
RankNTypes | |
, TypeFamilies | |
, ConstraintKinds | |
, FlexibleInstances | |
, ScopedTypeVariables | |
, TypeSynonymInstances | |
#-} | |
import GHC.Prim (Constraint) |
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
<foo> | |
<bar> | |
<baz> | |
<bin/> | |
</baz> | |
</bar> | |
<bar/> | |
</foo> |
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 Partiality where | |
import Control.Monad.Free | |
type Partiality = Free Maybe | |
never :: Partiality a | |
never = Free $ Just never | |
bad :: Partiality 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
(add-hook 'typescript-mode-hook | |
(lambda () | |
(add-to-list 'compilation-error-regexp-alist | |
'("^\\([_.[:alnum:]-/]*.ts\\)(\\([[:digit:]]+\\),\\([[:digit:]]+\\)).*$" 1 2 3)))) |
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
#! /usr/bin/env python | |
# | |
# Author: Gaute Hope <eg@gaute.vetsj.com> / 2017-10-08 | |
import os, sys, os.path | |
import subprocess | |
import notmuch | |
import email | |
import email.parser | |
import email.policy |
OlderNewer