homepage: ''
changelog-type: markdown
hash: 41645606dd1cd084e14d782d6d3004521c338148d67faa2798729268fefafa1c
test-bench-deps:
  internal: -any
  base: ==4.13.*
  HUnit: ==1.6.*
maintainer: me@mcsau.cc
synopsis: Extracts values from /proc/cmdline.
changelog: |
  # Revision history for kparams-hs

  ## 0.1.0.0 -- 2021-02-04

  * First version. Released on an unsuspecting world.
basic-deps:
  internal: -any
  base: ==4.13.*
all-versions:
- 0.1.0.0
author: Josh McSavaney
latest: 0.1.0.0
description-type: markdown
description: |
  # kparams (in Haskell)

  Extracts kernel parameter values from /proc/cmdline. Handles bare and quoted
  parameters. This is a rewrite of the
  [original kparams](https://github.com/mcsaucy/kparams) in Haskell.

  See
  [kernel.org's docs on kernel parameters](https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html)
  for more information. While the docs mention using double-quotes to protect
  values with spaces, we also recognize single-quotes and certain escape
  sequences to support things like `quoted="\"value\""`.

  Check out `test/` to see examples of what we can extract.

  ## Usage

  `$ kparams PARAM_NAME [DEFAULT_VALUE]`

  ## What's the difference between the shell implementation of kparams and this?

  They should be functionally similar. Error messages will differ, although they
  should error under the same conditions. Most significantly, this version is
  hundreds of times faster.
license-name: MIT

Update from Hackage at 2021-02-05T03:05:48Z
Update from Hackage at 2021-02-05T03:05:48Z
