Skip to content

Can't add documentation to local as it isn't inside the current module #5

Description

@teto

hi,
similar to tek/polysemy-conc#3, I get this when bulding:

       >     The following packages were specified via -package or -package-id flags,
       >     but were not needed for compilation:
       >       - base-4.17.0.0 (exposed by flag -package-id base-4.17.0.0)
       >       - incipit-core-0.3.0.0 (exposed by flag -package-id incipit-core-0.3.0.0-JXwwpI2nxTDAD4N5EVc8y)
       > [ 1 of 16] Compiling Polysemy.Log.Data.LogEntry ( lib/Polysemy/Log/Data/LogEntry.hs, dist/build/Polysemy/Log/Data/LogEntry.o, dist/build/Polysemy/Log/Data/LogEntry.dyn_o )
       > [ 2 of 16] Compiling Polysemy.Log.Data.Severity ( lib/Polysemy/Log/Data/Severity.hs, dist/build/Polysemy/Log/Data/Severity.o, dist/build/Polysemy/Log/Data/Severity.dyn_o )
       > [ 3 of 16] Compiling Polysemy.Log.Data.LogMessage ( lib/Polysemy/Log/Data/LogMessage.hs, dist/build/Polysemy/Log/Data/LogMessage.o, dist/build/Polysemy/Log/Data/LogMessage.dyn_o )
       > [ 4 of 16] Compiling Polysemy.Log.Effect.DataLog ( lib/Polysemy/Log/Effect/DataLog.hs, dist/build/Polysemy/Log/Effect/DataLog.o, dist/build/Polysemy/Log/Effect/DataLog.dyn_o )
       >
       > lib/Polysemy/Log/Effect/DataLog.hs:1:1: error:
       >     Can't add documentation to local as it isn't inside the current module
       >   |
       > 1 | {-# options_haddock prune #-}
       >   | ^
       >
       > lib/Polysemy/Log/Effect/DataLog.hs:1:1: error:
       >     Ambiguous occurrence ‘local’
       >     It could refer to
       >        either ‘Prelude.local’,
       >               imported from ‘Prelude’ at lib/Polysemy/Log/Effect/DataLog.hs:4:8-34
       >               (and originally defined in ‘Polysemy.Reader’)
       >            or ‘Polysemy.Log.Effect.DataLog.local’,
       >               defined at lib/Polysemy/Log/Effect/DataLog.hs:22:1
       >   |
       > 1 | {-# options_haddock prune #-}

with dontHaddock the nix build proceeds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions