Coder Social home page Coder Social logo

ordeal's Introduction

Ordeal automates the following:

$ stack ghci myproject
...
ghci> import Main
ghci> Main.main
-- listening on localhost:3000
-- edit some files...
Ctrl-c
ghci> :reload
ghci> import Main
ghci> Main.main
-- repeat

Ordeal might be anagram of reload.

Installation

$ git clone [email protected]:reiddraper/ordeal.git
$ cd ordeal
$ stack build && stack install

Usage

To use Ordeal, you'll need a .ordeal file, which has the commands to run your project.

$ cat .ordeal
import Main
Main.main

# examples
$ ordeal # defaults to `stack ghci`
$ ordeal stack ghci myproject
$ ordeal cabal repl

ordeal's People

Contributors

reiddraper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ordeal's Issues

Won't compile on GHC 7.10 because of Data.Monoid.mempty

I upgraded the resolver to LTS-4.0, which worked great after I removed the import of mempty in Ordeal.

src/Ordeal.hs:11:1: Warning:
    The import of ‘mempty’ from module ‘Data.Monoid’ is redundant

<no location info>: 
Failing due to -Werror.

Add .ordeal example for default Stack project

It would be super helpful to have a working example of an .ordeal file for whatever project is created via stack new Xxx.

I'm getting all kinds of strange output in the console when using the following in my .ordeal:

import Main

This is the output:

Using main module: Package `Reload' component exe:Reload-exe with main-is file: /Users/honza/Code/Reload/app/Main.hs
The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
Configuring GHCi with the following packages: Reload
GHCi, version 7.10.2: http://www.haskell.org/ghc/  :? for help
[1 of 2] Compiling Lib              ( /Users/honza/Code/Reload/src/Lib.hs, interpreted )
[2 of 2] Compiling Main             ( /Users/honza/Code/Reload/app/Main.hs, interpreted )
Ok, modules loaded: Lib, Main.
*Main Lib> *Main Lib> Interrupted.
*Main Lib> *Main Lib> [1 of 2] Compiling Lib              ( /Users/honza/Code/Reload/src/Lib.hs, interpreted )
Ok, modules loaded: Lib, Main.
*Main Lib> *Main Lib Main> *Main Lib Main> Interrupted.
> *Main Lib Main> *Main Lib Main> [1 of 2] Compiling Lib              ( /Users/honza/Code/Reload/src/Lib.hs, interpreted )
Ok, modules loaded: Lib, Main.
*Main Lib Main> *Main Lib Main> *Main Lib Main> 

Notice the repeated Main and Lib in the prompt.

This is using 0c995e7.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.