using linear-1.0.1 to be able to compile with ghcjs