Skip to content

The iPKG format should be replaced with a known configuration file format. #1825

Open
@jfdm

Description

For now the current ipkg format has served us well, however, with the interest in developing an Idris package manager the format should be replaced with a known configuration file format i.e. YAML.

YAML appears to be the choice de jeur for configuration files. Use of YAML will also allow for definition of a checkable schema for package files.

There are several advantages for switching to a known format. For one, it appears to provide the benefits of XML sans the horror's associated: extensible, well formed, types and namespaces, CDATA et cetera It is essentially, key-value pairs but on steroids and is more human readable than JSON. Secondly, support for a bespoke configuration file parser can be deprecated and work concentrated on using the contained values. Discussions over syntax also becomes deprecated to a degree.

The only disadvantage would relate to the Haskell library used. For example: not all libraries support schema checking, some require external dependancies and unsure if said dependancies are cross-platform. The PKG file parser and format need to be rewritten.

An example iPKG YAML file. Note the default options are explicitly represented here, and need not be represented.

This issue should be seen as a place holder for work in progress by myself. Though, if someone else completes this before me I won't be mad.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions