Explorar el Código

Build under LTS-5.15

tags/v0.2.3.0
Peter J. Jones hace 4 años
padre
commit
91602c1c38
¡ADVERTENCIA! ¡Hay una clave con este ID en la base de datos, pero esa clave no verifica este commit! Este commit es SOSPECHOSO. ID de clave GPG: 9DAFAA8D01941E49
Se han modificado 7 ficheros con 49 adiciones y 15 borrados
  1. +7
    -6
      CHANGES.md
  2. +28
    -0
      GNUmakefile
  3. +1
    -1
      LICENSE
  4. +7
    -1
      build/nixpkgs.nix
  5. +2
    -2
      build/stack.yaml
  6. +2
    -3
      byline.cabal
  7. +2
    -2
      src/System/Console/Byline/Primitive.hs

CHANGES → CHANGES.md Ver fichero

@@ -1,18 +1,19 @@
-*- org -*-
# Version History

#+title: Version History
#+startup: showall
## 0.2.2.0 (June 9, 2016)

* 0.2.1.0 (November 5, 2014)
- Build under LTS-5.15

## 0.2.1.0 (November 5, 2014)

- Updated dependencies

* 0.2.0.0 (May 22, 2015)
## 0.2.0.0 (May 22, 2015)

- Added the NoItems constructor for Choice to deal with menus that
are asked to display an empty list.
- Changes to build with GHC 7.8.4. and 7.10.1

* 0.1.0.0 (May 19, 2015)
## 0.1.0.0 (May 19, 2015)

- Initial release.

+ 28
- 0
GNUmakefile Ver fichero

@@ -0,0 +1,28 @@
################################################################################
export TMPDIR = $(HOME)/tmp

################################################################################
TMP_DUMMY = $(TMPDIR)/.dummy
STACK_OPTS = --stack-yaml=build/stack.yaml

################################################################################
.PHONY: all test clean

################################################################################
all: $(TMP_DUMMY)
stack $(STACK_OPTS) setup
stack $(STACK_OPTS) build
hlint src examples

################################################################################
test:
stack $(STACK_OPTS) test

################################################################################
clean:
stack $(STACK_OPTS) clean

################################################################################
$(TMP_DUMMY):
mkdir -p $(dir $@)
touch $@

+ 1
- 1
LICENSE Ver fichero

@@ -1,4 +1,4 @@
Copyright (c) 2015,2016, Peter J. Jones <pjones@devalot.com>
Copyright (c) 2015, 2016 Peter J. Jones <pjones@devalot.com>
All rights reserved.

Redistribution and use in source and binary forms, with or without


+ 7
- 1
build/nixpkgs.nix Ver fichero

@@ -4,7 +4,13 @@ stdenv.mkDerivation {
name = "byline";

buildInputs = [
haskell.packages.lts-4_2.ghc
# GHC:
haskell.packages.lts-5_15.ghc

# Non-Haskell Dependencies:
zlib # For the header files.
zlib.out # For the .so file.
gnupg # For signing packages.
ncurses
];
}

+ 2
- 2
build/stack.yaml Ver fichero

@@ -1,3 +1,5 @@
resolver: lts-5.15

flags:
byline:
maintainer: true
@@ -8,5 +10,3 @@ packages:

extra-deps:
- terminfo-hs-0.2.1

resolver: lts-4.2

+ 2
- 3
byline.cabal Ver fichero

@@ -1,6 +1,6 @@
--------------------------------------------------------------------------------
name: byline
version: 0.2.1.0
version: 0.2.2.0
synopsis: Library for creating command-line interfaces (colors, menus, etc.)
homepage: http://github.com/pjones/byline
bug-reports: http://github.com/pjones/byline/issues
@@ -28,7 +28,7 @@ description:

--------------------------------------------------------------------------------
extra-source-files:
CHANGES
CHANGES.md
README.md
examples/*.hs

@@ -71,7 +71,6 @@ library

if flag(maintainer)
ghc-options: -Werror
ghc-prof-options: -prof -auto-all

build-depends: base >= 4.7 && < 5.0
, ansi-terminal >= 0.6 && < 0.7


+ 2
- 2
src/System/Console/Byline/Primitive.hs Ver fichero

@@ -141,8 +141,8 @@ askUntil prompt defans confirm = go where
--------------------------------------------------------------------------------
-- | Output stylized text with a prefix determined by 'ReportType'.
report :: (MonadIO m) => ReportType -> Stylized -> Byline m ()
report (Error) message = say $ (text "error: " <> fg red) <> message
report (Warning) message = say $ (text "warning: " <> fg yellow) <> message
report Error message = say $ (text "error: " <> fg red) <> message
report Warning message = say $ (text "warning: " <> fg yellow) <> message

--------------------------------------------------------------------------------
-- | Like 'report', but append a newline character.


Cargando…
Cancelar
Guardar