Starting a project that depends on a module with a custom Prelude: mixins, cabal, and yesod-bin

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/haskellquestions

Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SonarQube - Static code analysis for 29 languages.
  • SaaSHub - Software Alternatives and Reviews
  • haskell-language-server

    Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.

    This works like a charm, but now I run into issues with IDE integration: mixins are currently only supported for Cabal, as per this issue. So I change my hie.yaml to cradle: cabal: instead of cradle: stack:, but Cabal won't build because the private module is not on hackage.

  • yesod-persistent

    A RESTful Haskell web framework built on WAI.

    The project is going to make use of Warp. To smoothen the development process I set up yesod-bin according to their template for non-yesod projects. This worked fine initially, giving me hot reloading on file changes, but after adding the private package as described above it's giving the following error:

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • stack

    The Haskell Tool Stack

    I don't know if this is related to your case, but stack has some problems with cabal mixins. You may try using alternative methods to add a custom prelude (via base-noprelude or NoImplicitPrelude) and see how it goes.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts