-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
063c427
commit 9a307e4
Showing
7 changed files
with
66 additions
and
241 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#! /usr/bin/env bash | ||
|
||
# Create a temporary C file, that merely imports trexio.h | ||
TREXIO_TMP=$(mktemp --suffix=.c) | ||
trap "rm -f $TREXIO_TMP" EXIT ERR | ||
|
||
# Run the C preprocessor on that file to get the path to trexio.h | ||
echo "#include <trexio.h>" > $TREXIO_TMP | ||
TREXIO_HEADER_PATH=$(gcc -E test.c | grep '^# [0-9]\+ "' | grep 'trexio\.h' | head -n 1 | awk -F'"' '{print $2}') | ||
|
||
# Extract the JSON specification from a comment in the header file | ||
sed -n '/\/\* JSON configuration/,/\*\//p' $TREXIO_HEADER_PATH | sed '1d;$d' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ maintainer: [email protected] | |
category: Data | ||
build-type: Simple | ||
extra-doc-files: CHANGELOG.md | ||
data-files: data/trexio.json | ||
data-files: get-json-spec.sh | ||
tested-with: GHC == {9.6.6, 9.8.2} | ||
description: | ||
This package provides low- and high-level Haskell bindings for [TREXIO, a portable file format for storing wave function data](https://trex-coe.github.io/trexio/). | ||
|
@@ -81,6 +81,7 @@ common deps | |
massiv >= 1.0.0.0 && < 1.1, | ||
safe-exceptions >= 0.1.7 && < 0.2, | ||
template-haskell >= 2.20 && < 2.23, | ||
typed-process >= 0.2.12 && < 0.3, | ||
text >= 2.0 && < 2.2, | ||
vector >= 0.13 && < 0.14 | ||
|
||
|
@@ -147,6 +148,6 @@ test-suite trexio-test | |
tasty >= 1.4 && < 1.6, | ||
tasty-hunit >= 0.10 && < 0.11, | ||
tasty-hedgehog >= 1.4 && < 1.5, | ||
hedgehog >= 1.4 && < 1.6, | ||
temporary >= 1.3 && < 1.4 | ||
temporary >= 1.3 && < 1.4, | ||
hedgehog >= 1.4 && < 1.6 | ||
|