devel/hs-focus: import hs-focus-1.0.3

An API for construction of free-form strategies of access and manipulation
of elements of arbitrary data structures. It allows to implement efficient
composite patterns, e.g., a simultaneous update and lookup of an element,
and even more complex things.

Strategies are meant to be interpreted by the host data structure
libraries. Thus they allow to implement all access and modification
patterns of a data structure with just a single function, which interprets
strategies.

This library provides pure and monadic interfaces, so it supports both
immutable and mutable data structures.
This commit is contained in:
pho 2022-02-16 05:08:34 +00:00
parent 8dfe48d1f6
commit b258f52b96
5 changed files with 63 additions and 0 deletions

12
devel/hs-focus/DESCR Normal file
View file

@ -0,0 +1,12 @@
An API for construction of free-form strategies of access and manipulation
of elements of arbitrary data structures. It allows to implement efficient
composite patterns, e.g., a simultaneous update and lookup of an element,
and even more complex things.
Strategies are meant to be interpreted by the host data structure
libraries. Thus they allow to implement all access and modification
patterns of a data structure with just a single function, which interprets
strategies.
This library provides pure and monadic interfaces, so it supports both
immutable and mutable data structures.

11
devel/hs-focus/Makefile Normal file
View file

@ -0,0 +1,11 @@
# $NetBSD: Makefile,v 1.1 2022/02/16 05:08:34 pho Exp $
DISTNAME= focus-1.0.3
CATEGORIES= devel
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= General abstraction for manipulating elements of containers
LICENSE= mit
.include "../../mk/haskell.mk"
.include "../../mk/bsd.pkg.mk"

22
devel/hs-focus/PLIST Normal file
View file

@ -0,0 +1,22 @@
@comment $NetBSD: PLIST,v 1.1 2022/02/16 05:08:34 pho Exp $
lib/focus-${PKGVERSION}/${HS_VERSION}/package-description
lib/focus-${PKGVERSION}/${HS_VERSION}/package-id
lib/${HS_PLATFORM}/${HS_PKGID}/Focus.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Focus.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Focus.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Focus/Prelude.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Focus/Prelude.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Focus/Prelude.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
share/doc/${HS_PLATFORM}/focus-${PKGVERSION}/LICENSE
share/doc/${HS_PLATFORM}/focus-${PKGVERSION}/html/Focus.html
share/doc/${HS_PLATFORM}/focus-${PKGVERSION}/html/doc-index.html
share/doc/${HS_PLATFORM}/focus-${PKGVERSION}/html/focus.haddock
share/doc/${HS_PLATFORM}/focus-${PKGVERSION}/html/haddock-bundle.min.js
share/doc/${HS_PLATFORM}/focus-${PKGVERSION}/html/index.html
share/doc/${HS_PLATFORM}/focus-${PKGVERSION}/html/linuwial.css
share/doc/${HS_PLATFORM}/focus-${PKGVERSION}/html/meta.json
share/doc/${HS_PLATFORM}/focus-${PKGVERSION}/html/quick-jump.css
share/doc/${HS_PLATFORM}/focus-${PKGVERSION}/html/synopsis.png

View file

@ -0,0 +1,13 @@
# $NetBSD: buildlink3.mk,v 1.1 2022/02/16 05:08:34 pho Exp $
BUILDLINK_TREE+= hs-focus
.if !defined(HS_FOCUS_BUILDLINK3_MK)
HS_FOCUS_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.hs-focus+= hs-focus>=1.0.3
BUILDLINK_ABI_DEPENDS.hs-focus+= hs-focus>=1.0.3
BUILDLINK_PKGSRCDIR.hs-focus?= ../../devel/hs-focus
.endif # HS_FOCUS_BUILDLINK3_MK
BUILDLINK_TREE+= -hs-focus

5
devel/hs-focus/distinfo Normal file
View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2022/02/16 05:08:34 pho Exp $
BLAKE2s (focus-1.0.3.tar.gz) = 395155041a06cb831cecb3822e287c7ed893a89a36a9edfc0cfafaf7e8db774d
SHA512 (focus-1.0.3.tar.gz) = c5dc9a0c683ddbfbe59888bd772e48f38eb2651e2966c4208559e81efaab198ce0e808b35d78e86135daea1d4033f3dc12d221432a29b511e3605e5262e9c52e
Size (focus-1.0.3.tar.gz) = 6319 bytes