Hacker News new | past | comments | ask | show | jobs | submit login

It used to be one function per syscall: https://github.com/haskus/haskus-system/blob/ee3e0a69a263aaf...

I did this to remove the boilerplate code, to make it easier to select the method (foreign primops or safe FFI foreign calls) and to make the conversion from the kernel tables simpler.

However I may have to switch to a Template Haskell solution because the type-level approach with type classes and type families has increased the compilation time and forces me to use `-freduction-depth=0`.




> the type-level approach with type classes and type families has increased the compilation time and forces me to use `-freduction-depth=0`.

Are you on OSX by any chance? I have some similar issues but they don't seem to happen on Linux.


No I develop on Linux.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: