Coder Social home page Coder Social logo

shorturls's Introduction

shorturls

This is a WIP do not expect it to work yet, please. Also I intend to use it more for an integration approach nix-wise than to actually enhance the program sources themselves in any way. The latter which seemingly natural as it is just kind of a tutorial according to the original author's expressed intent.

hints for building shorturls locally using a nixpkgs installation

cd ~/shorturls
cabal2nix . > shorturls.nix

default.nix and shell.nix are simple copies of the default templates given in the haskell section of nix' manual, noteworthy is setting compiler version string to "ghc7102" according to WJWH/shorturls/stack.yaml. Consequently nixpkgs=.../nixos-17.09.tar.gz is chosen as the compiler version fixed seems available just there.

The first build (nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-17.09.tar.gz) attempt triggered a package missing error, added transformers to cabal file plus repeated cabal2nix call above to reflect dependencies change. Also in subsequent builds a symbol undefined error (<>) was thrown, added the import to both src/Example.hs and test/Spec.hs.

nix-shell -p which nano git haskellPackages.ghc haskellPackages.cabal-install cabal2nix redis -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-17.09.tar.gz
redis-server &
nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-17.09.tar.gz

todo

integrate manual work listed above for local building to haskell.yml as a first step.

shorturls's People

Contributors

573 avatar wjwh avatar

Watchers

James Cloos avatar

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.