| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 19:20:40 GMT
X-Served-By: cache-dfw-kdal2120139-DFW, cache-bom-vanm7210064-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768677640.916395,VS0,VE289
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
kicad-data: Parser and writer for KiCad files.
kicad-data: Parser and writer for KiCad files.
Modules
- Data
- Kicad
- Data.Kicad.PcbnewExpr
- Data.Kicad.PcbnewExpr.Parse
- Data.Kicad.PcbnewExpr.PcbnewExpr
- Data.Kicad.PcbnewExpr.Write
- Data.Kicad.SExpr
- Data.Kicad.SExpr.Parse
- Data.Kicad.SExpr.SExpr
- Data.Kicad.SExpr.Write
- Data.Kicad.PcbnewExpr
- Kicad
Downloads
- kicad-data-0.5.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.4.0, 0.5.0, 0.5.1 |
|---|---|
| Change log | changelog.md |
| Dependencies | base (>=4.4 && <4.11), ieee754 (>=0.7.4 && <0.9), lens-family (>=1.1 && <1.3), parsec (>=3.1.6 && <3.2), pretty-compact (>=1.0 && <2) [details] |
| License | MIT |
| Copyright | 2018 |
| Author | Kaspar Emanuel |
| Maintainer | kaspar@monostable.co.uk |
| Uploaded | by kasbah at 2021-10-29T10:07:20Z |
| Category | Data |
| Home page | https://github.com/monostable/haskell-kicad-data |
| Bug tracker | https://github.com/monostable/haskell-kicad-data/issues |
| Source repo | head: git clone git@github.com:kasbah/haskell-kicad-data |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 3829 total (24 in the last 30 days) |
| Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs not available [build log] All reported builds failed as of 2021-10-29 [all 2 reports] |
Readme for kicad-data-0.5.1
[back to package description]Haskell KiCad Data
Parse and write KiCad data (currently .kicad_mod files only).
This library is tested with QuickCheck to ensure it can parse whatever it outputs. The parser is also fairly regularily checked against over 38,000 kicad_mod files currently part of monostable/kicad_footprints. The resulting output of these parsed files is then checked with KiCad scripting to make sure they are still valid.
Usage
$ cabal repl
*Data.Kicad.PcbnewExpr> let pad = parse "(pad 1 smd rect (size 1 1) (at 1 1) (layers F.Cu))"
*Data.Kicad.PcbnewExpr> pad
Right (PcbnewExprItem (PcbnewPad {padNumber = "1", padType = SMD, padShape =
Rect, itemAt = PcbnewAtT {pcbnewAtPoint = (1.0,1.0), pcbnewAtOrientation =
0.0}, itemSize = (1.0,1.0), padLayers = [FCu], padAttributes_ = []}))
*Data.Kicad.PcbnewExpr> fmap write pad
Right "(pad \"1\" smd rect (at 1 1) (size 1 1) (layers F.Cu))"
See docs on Hackage.
Projects Using This
- ppelleti/footprint-to-script - Converts a KiCad footprint to a KicadModTree Python script.
License
This project is MIT licensed but one dependency is licensed under GPLv3 thus the GPLv3 applies to the project as a whole.