You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Moritz Clasmeier
mtesseract
Mathematician, hacker, functional programmer, feminist; interested in politics, philosophy, history of science among other things.
Working around Haskell's namespace problem for records
The Problem
Defining records in Haskell causes accessor functions for the record's fields to be defined. There
is no seperate namespace for these accessor functions.
In the following post I describe how a simple Haskell web application built on top of Reflex FRP can be deployed to a remote NixOS server. If a remote NixOS server is available using it for deployment can be cheaper alternative to commercial cloud providers in case the features of those (e.g. scaling, hosted services, availability guarantees, etc.) are not strictly required.
The sample Reflex application can be found on GitHub.
Our setting is as follows:
The application, consisting of a frontend and a backend, is built with Nix
The development system is a Mac (i.e., not x86_64-linux)