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 Data.Monoid (Monoid(..)) | |
| {- | |
| Summary | |
| If we have a type, 'a', and some monoid defined for 'a', then 'Operation' is an AST representing | |
| computations that could be done by the monoid. 'Operation' can represent something like | |
| [ 1, 2, 3 ] ++ ( [4, 5, 6] ++ [] ) | |
| or |
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
| -- in ~/.config/yi/yi.hs | |
| import Data.Monoid ((<>)) | |
| import Yi (Attributes(..), Config, UIConfig(..), configUI, defaultEmacsConfig, emptyAttributes, override, yi) | |
| import Yi.Style (Color(..), UIStyle(..), grey, withBg, withFg) | |
| import Yi.Style.Library (defaultTheme) | |
| config :: Config | |
| config = defaultEmacsConfig | |
| { configUI = (configUI defaultEmacsConfig) |
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 scala.collection.immutable._ | |
| object TypeclassProjection { | |
| trait Show[T] { | |
| def show(t: T): String | |
| } | |
| object Show { | |
| def apply[T](showFn: T => String): Show[T] = new Show[T] { def show(t: T): String = showFn(t) } | |
| } |
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
| ;---------------------------------------; | |
| ; JONATHAN MERRITT'S EMACS STARTUP FILE ; | |
| ;---------------------------------------; | |
| ; Setup: | |
| ; | |
| ; 1. Create vendor directory: | |
| ; > mkdir -p ~/.emacs.d/vendor | |
| ; | |
| ; 2. Install milkypostman/powerline (cute status bar / modeline): | |
| ; > cd ~/.emacs.d/vendor |
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 | |
| #----- | |
| # Test to see if drip picks up classpath changes. | |
| # | |
| # NB: For safety, create a new directory in which to execute this script! | |
| # | |
| # The drip utility (https://github.com/flatland/drip) is a way to launch a JVM | |
| # quickly. It works by keeping "a fresh JVM spun up in reserve with the | |
| # correct classpath and other JVM options". | |
| # |
NewerOlder