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
#! /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 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
{-# LANGUAGE EmptyDataDecls #-} | |
{-# LANGUAGE NoImplicitPrelude #-} | |
module RingOscillator (main) where | |
import Language.Fay.FFI | |
import Language.Fay.Prelude | |
-- System parameters. |
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
module Lorenz where | |
import Data.Default | |
data LzParam t = LzParam { sigma :: t, r :: t, b :: t } deriving (Eq, Show) | |
instance Floating t => Default (LzParam t) where | |
def = LzParam 10 28 (8/3) | |
lorenz :: Floating t => t -> [t] -> [t] |