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 /r/haskellquestions

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • 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

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • 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