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
{-# OPTIONS -Wall #-} | |
module Main where | |
import Control.Concurrent (threadDelay) | |
import System.Environment (getArgs) | |
import System.INotify | |
main :: IO () | |
main = do |
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.Arrow | |
import Control.Applicative | |
import Control.Monad | |
import Data.Maybe | |
import FRP.Euphoria.Collection | |
import FRP.Euphoria.Event | |
import FRP.Euphoria.Signal |
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 #-} | |
module FieldNames ( | |
fieldNames | |
) where | |
import Data.List (nub) | |
import Language.Haskell.TH | |
-- | Generate a list of all field names used in the constructors |
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 OverloadedStrings #-} | |
{-# LANGUAGE RebindableSyntax #-} | |
module TodoFay ( | |
Todo(..) | |
, TodoState(..) | |
, initialState | |
, remaining | |
, addTodo | |
, archive |
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
diff --git a/src/Fay/Compiler.hs b/src/Fay/Compiler.hs | |
index 8de77fc..ed388d5 100644 | |
--- a/src/Fay/Compiler.hs | |
+++ b/src/Fay/Compiler.hs | |
@@ -81,24 +81,27 @@ compileToplevelModule filein mod@Module{} = do | |
either throwError warn res | |
initialPass filein | |
-- Reset imports after initialPass so the modules can be imported during code generation. | |
- startCompile compileFileWithSource filein | |
+ (hstmts, fstmts) <- startCompile compileFileWithSource filein |
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 | |
apply () { | |
filename=$1 | |
shift | |
patch_args=$* | |
gotSubject=no | |
msg="" |
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
function cd_down_rec () { | |
case $(find ./* -maxdepth 0 -type d -not -name ".*" | wc -l) in | |
1) | |
cd * | |
cd_down_rec | |
;; | |
*) | |
;; | |
esac |
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/sh | |
# | |
# ci: Continuously invoke a command when input files change | |
# | |
# Requires inotifywait, from inotify-tools: | |
# # apt-get install inotify-tools | |
# # yum install inotify-tools | |
# | |
# Conrad Parker 2015 |
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
(Read the comments) |
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
# To use this, you need to implement some class with a read() method, eg. | |
# | |
# class MyReader(object): | |
# def __init__(self, path): | |
# self.path = path | |
# | |
# def read(self): | |
# with open(self.path, 'r') as f: | |
# return f.read() | |
# ... |
OlderNewer