Skip to content

More information in the Paths_pkg.hs module, or a new module #392

Open

Description

@bos

(Imported from Trac #399, reported by @dcoutts on 2008-11-08)

There is more information about the system or about the package or configuration that we could include into a generated module.

For example:

  • OS name (from standard enum names, not System.Info.os)
  • Arch name (similarly)
  • Compiler used for build
  • Package version (perhaps moved out of the Paths_ module)
  • Other .cabal file package details (as Strings)
    • x-foo extension fields
    • license enum
    • authors, copyright
    • synopsis / description
    • home page, bug report url
    • configuration flag values
  • System details
    • big or little endian
  • Revision control context
    • git hash
    • darcs context

Activity

  1. bos commented on May 24, 2012

    @bos
    ContributorAuthor

    (Imported comment by guest on 2008-11-08)

    I have a package, where I like to enable debug output based on a package configuration flag. To this end it would be nice to have the state of this Cabal flag as top-level constant in an automatically generated module like Paths.

  2. added
    old-milestone: ⊥
    on Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Cabal: otherold-milestone: ⊥type: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions