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

Apia doesn't support Agda "dead code" new feature #22

Open
asr opened this issue Apr 2, 2016 · 3 comments
Open

Apia doesn't support Agda "dead code" new feature #22

asr opened this issue Apr 2, 2016 · 3 comments
Assignees

Comments

@asr
Copy link
Owner

asr commented Apr 2, 2016

From @asr on September 30, 2015 15:46

Agda is using a dead code analysis for reducing the interfaces file. Apia currently doesn't support this "feature".

At the moment, we removed the dead code analysis from eagda (see asr/eagda@3dbd2a6).

@asr asr self-assigned this Apr 2, 2016
@asr asr added the type: bug label Apr 2, 2016
@asr
Copy link
Owner Author

asr commented Apr 2, 2016

I revert the eagda commit asr/eagda@3dbd2a6 in asr/eagda@7f8ce15.

@asr asr closed this as completed in f9fe22b Apr 2, 2016
@asr
Copy link
Owner Author

asr commented Apr 8, 2016

module Bug where

postulate
  D   : Set
  _≡_ : D  D  Set
  d e : D

foo :  x  x ≡ x
foo x = bar
  where
  postulate
    d≡e : d ≡ e

  postulate
    bar : x ≡ x
  {-# ATP prove bar d≡e #-}

-- $ apia Bug.agda
-- An internal error has occurred. Please report this as a bug.
-- Location of the error: src/Apia/Utils/AgdaAPI/Interface.hs:307

-- The error occurs because the dead code analysis removes `d≡e` from
-- the interface file.

@asr asr reopened this Apr 8, 2016
@asr
Copy link
Owner Author

asr commented Apr 8, 2016

I revert the revert of asr/eagda@3dbd2a6 in asr/eagda@75f338a.

asr added a commit that referenced this issue Apr 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant