Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No import generated for fromMaybe #377

Open
jespercockx opened this issue Oct 3, 2024 · 0 comments
Open

No import generated for fromMaybe #377

jespercockx opened this issue Oct 3, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@jespercockx
Copy link
Member

jespercockx commented Oct 3, 2024

I have another issue: The following module

module Test where

open import Haskell.Prelude

test : Integer
test = fromMaybe 0 (Just 12)

{-# COMPILE AGDA2HS test #-}

is transpiled to

module Test where

test :: Integer
test = fromMaybe 0 (Just 12)

but this module does not compile — it's missing a line

import Data.Maybe (fromMaybe)

In other words, the function fromMaybe happens to not be a part of the Haskell Prelude.

Originally posted by @HeinrichApfelmus in #366 (comment)

@jespercockx jespercockx added this to the 1.4 milestone Oct 3, 2024
@jespercockx jespercockx added the bug Something isn't working label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant