Skip to content

Instantly share code, notes, and snippets.

View ScottFreeCode's full-sized avatar
🖖
ScottFreeCode, programmer, cancels write code: interrupted by Real Life

Scott Santucci ScottFreeCode

🖖
ScottFreeCode, programmer, cancels write code: interrupted by Real Life
View GitHub Profile
@ScottFreeCode
ScottFreeCode / README.org
Last active July 26, 2023 05:45
Nix+Haskell Examples Collection

About

Here are some gists that demonstrate how to wrap a Haskell project with Nix, without changing the Haskell.

A handful of cases are covered:

  • simple package
  • package with custom Setup and external helper programs
  • a repository/project containing multiple packages
@ScottFreeCode
ScottFreeCode / .gitignore
Created July 25, 2023 03:42
Haskell+Nix+BNFC, Monorepo
dist/
dist-*/
result
result-*
Example
cabal.project.local
Setup
*~
*#*
@ScottFreeCode
ScottFreeCode / .gitignore
Created July 25, 2023 03:17
Haskell+Nix+BNFC, One Package
/dist/
/dist-*/
/result
/result-*
/app/Example
cabal.project.local
Setup
@ScottFreeCode
ScottFreeCode / .gitignore
Created July 25, 2023 02:53
Haskell+Nix, Monorepo
dist/
dist-*/
result
result-*
cabal.project.local
Setup
*~
*#*
@ScottFreeCode
ScottFreeCode / .gitignore
Last active July 25, 2023 03:55
Haskell+Nix, One Package
/dist/
/dist-*/
/result
/result-*
cabal.project.local
Setup