Giter Site home page Giter Site logo

Cannot import prelude about dhall-lang HOT 6 OPEN

soujiro32167 avatar soujiro32167 commented on June 29, 2024
Cannot import prelude

from dhall-lang.

Comments (6)

Gabriella439 avatar Gabriella439 commented on June 29, 2024 1

You will need to import an older, pinned, version of the Prelude or upgrade to the latest version of the interpreter (which supports Date/show)

You can pin the Prelude by doing https://prelude.dhall-lang.org/v${VERSION}/package.dhall. For more details, see: https://github.com/dhall-lang/dhall-lang/tree/master/Prelude#usage

from dhall-lang.

soujiro32167 avatar soujiro32167 commented on June 29, 2024

That worked! Thank you:

let Prelude = https://raw.githubusercontent.com/dhall-lang/dhall-lang/v22.0.0/Prelude/package.dhall
in Prelude.List.map Natural Natural (\(a: Natural) -> a + 1) [1, 2, 3]

So this is a bug in v23 of Dhall?

from dhall-lang.

Gabriella439 avatar Gabriella439 commented on June 29, 2024

It's not a bug in the sense that v23 of the Prelude is compatible with any Dhall interpreter that implements v23 of the language standard

from dhall-lang.

soujiro32167 avatar soujiro32167 commented on June 29, 2024
➜  dhall brew upgrade dhall-json
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> New Casks
creative                                   obsbot-webcam                              pololu-avr-programmer-v2                   volta
logitune                                   opal                                       samsung-portable-ssd-t7

You have 17 outdated formulae installed.

Warning: dhall-json 1.7.11 already installed

Is this is the interpreter? Am I installing it wrong?

from dhall-lang.

soujiro32167 avatar soujiro32167 commented on June 29, 2024

Wow 1.7.11 is not even in the tag list...I'm confused

from dhall-lang.

Gabriella439 avatar Gabriella439 commented on June 29, 2024

You'd have to install dhall-json-1.7.12 anyway, but that hasn't been packaged for brew yet as far as I can tell

from dhall-lang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.