Skip to content

Dhall.Pretty updated; fails to build on Nix #738

@toastal

Description

@toastal
src/Spago/Dhall.hs:39:11: error:
    • Couldn't match expected type ‘Maybe Dhall.Pretty.CharacterSet’
                  with actual type ‘Dhall.Pretty.CharacterSet’
    • In the first argument of ‘Dhall.Format.Format’, namely
        ‘Dhall.Pretty.ASCII’
      In the second argument of ‘(.)’, namely
        ‘Dhall.Format.Format
           Dhall.Pretty.ASCII NoCensor
           (PossiblyTransitiveInputFile (Text.unpack pathText) NonTransitive)’
      In the expression:
        Dhall.Format.format
          . Dhall.Format.Format
              Dhall.Pretty.ASCII NoCensor
              (PossiblyTransitiveInputFile (Text.unpack pathText) NonTransitive)
   |
39 |           Dhall.Pretty.ASCII
   |           ^^^^^^^^^^^^^^^^^^

I believe this came up in the discussion in ASCII vs. Unicode discussion on the Dhall Discourse, but now the autoformatter can deduce which style the user is using. The update happened in dhall-haskell last month with this commit. I suppose this library at least needs the library updated.

I would assume spago should also be "smart" about formatting too even if PureScript, the org?, wants to keep ASCII by default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions