Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haskell bindings #34

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ result-dev
.cache/
test.sh
tmp/
lang/haskell/**/GI/
6 changes: 6 additions & 0 deletions lang/haskell/Astal/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### 3.0.0
split into io and gtk3 specific packages

### 0.1.0

initial release
470 changes: 470 additions & 0 deletions lang/haskell/Astal/LICENSE

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions lang/haskell/Astal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Documentation
Autogenerated documentation for this package can be found at

[https://hackage.haskell.org/package/gi-astal-3.0.0/docs/GI-Astal.html](https://hackage.haskell.org/package/gi-astal-3.0.0/docs/GI-Astal.html)

For general documentation on using [haskell-gi](https://github.com/haskell-gi/haskell-gi) based bindings, see [the project page](https://github.com/haskell-gi/haskell-gi) or [the Wiki](https://github.com/haskell-gi/haskell-gi/wiki).
22 changes: 22 additions & 0 deletions lang/haskell/Astal/Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{-# LANGUAGE OverloadedStrings #-}

import Data.GI.CodeGen.CabalHooks (setupBinding, TaggedOverride(..))

import qualified GI.AstalIO.Config as AstalIO
import qualified GI.GObject.Config as GObject
import qualified GI.Gdk.Config as Gdk
import qualified GI.GdkPixbuf.Config as GdkPixbuf
import qualified GI.Gio.Config as Gio
import qualified GI.Gtk.Config as Gtk


main :: IO ()
main = setupBinding name version pkgName pkgVersion verbose overridesFile inheritedOverrides outputDir
where name = "Astal"
version = "3.0"
pkgName = "gi-astal"
pkgVersion = "3.0.0"
overridesFile = Nothing
verbose = False
outputDir = Nothing
inheritedOverrides = [TaggedOverride "inherited:AstalIO" AstalIO.overrides, TaggedOverride "inherited:GObject" GObject.overrides, TaggedOverride "inherited:Gdk" Gdk.overrides, TaggedOverride "inherited:GdkPixbuf" GdkPixbuf.overrides, TaggedOverride "inherited:Gio" Gio.overrides, TaggedOverride "inherited:Gtk" Gtk.overrides]
114 changes: 114 additions & 0 deletions lang/haskell/Astal/gi-astal.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
name: gi-astal
version: 3.0.0
synopsis: libastal bindings
description: Bindings for libastal, autogenerated by haskell-gi.
homepage: https://github.com/haskell-gi/haskell-gi
license: LGPL-2.1
license-file: LICENSE
author: kotontrion
maintainer: Iñaki García Etxebarria
category: Bindings
build-type: Custom
cabal-version: 2.0

extra-source-files: README.md ChangeLog.md stack.yaml

custom-setup
setup-depends: base >= 4.11 && < 5,
Cabal >= 1.24 && < 4,
haskell-gi >= 0.26.14 && < 0.27,
gi-glib == 2.0.*,
gi-gio == 2.0.*,
gi-gobject == 2.0.*,
gi-gdkpixbuf == 2.0.*,
gi-gtk == 3.0.*,
gi-gdk == 3.0.*,
gi-gtk-layer-shell == 0.1.*,
gi-astal-io == 0.1.*

library
default-language: Haskell2010
default-extensions: NoImplicitPrelude, ScopedTypeVariables, CPP, OverloadedStrings, NegativeLiterals, ConstraintKinds, TypeFamilies, MultiParamTypeClasses, KindSignatures, FlexibleInstances, UndecidableInstances, DataKinds, FlexibleContexts, UndecidableSuperClasses, TypeOperators
other-extensions: PatternSynonyms, ViewPatterns, TypeApplications
ghc-options: -fno-warn-unused-imports -fno-warn-warnings-deprecations

pkgconfig-depends: astal-3.0
build-depends: base >= 4.7 && <5,
haskell-gi-base >= 0.26 && < 0.27,
haskell-gi >= 0.26.14 && < 0.27,
haskell-gi-overloading < 1.1,
gi-glib == 2.0.*,
gi-gio == 2.0.*,
gi-gobject == 2.0.*,
gi-gdkpixbuf == 2.0.*,
gi-gtk == 3.0.*,
gi-gdk == 3.0.*,
gi-gtk-layer-shell == 0.1.*,
gi-astal-io == 0.1.*,
bytestring >= 0.10 && < 1,
containers >= 0.5 && < 1,
text >= 1.0 && < 3,
transformers >= 0.4 && < 1

-- Disable overloading when compiling under GHC 8.2.x
-- see https://ghc.haskell.org/trac/ghc/ticket/14382
if impl(ghc == 8.2.*)
build-depends: haskell-gi-overloading == 0.0

-- Note that the following list of exposed modules and autogen
-- modules is for documentation purposes only, so that some
-- documentation appears in hackage. The actual list of modules
-- to be built will be built at configure time, based on the
-- available introspection data.

exposed-modules: GI.Astal.Config,
GI.Astal,
GI.Astal.Constants,
GI.Astal.Enums,
GI.Astal.Functions,
GI.Astal.Objects,
GI.Astal.Objects.Application,
GI.Astal.Objects.Box,
GI.Astal.Objects.Button,
GI.Astal.Objects.CenterBox,
GI.Astal.Objects.CircularProgress,
GI.Astal.Objects.EventBox,
GI.Astal.Objects.Icon,
GI.Astal.Objects.Label,
GI.Astal.Objects.LevelBar,
GI.Astal.Objects.Overlay,
GI.Astal.Objects.Scrollable,
GI.Astal.Objects.Slider,
GI.Astal.Objects.Stack,
GI.Astal.Objects.Window,
GI.Astal.Structs,
GI.Astal.Structs.ClickEvent,
GI.Astal.Structs.HoverEvent,
GI.Astal.Structs.MotionEvent,
GI.Astal.Structs.ScrollEvent

autogen-modules: GI.Astal.Config,
GI.Astal,
GI.Astal.Constants,
GI.Astal.Enums,
GI.Astal.Functions,
GI.Astal.Objects,
GI.Astal.Objects.Application,
GI.Astal.Objects.Box,
GI.Astal.Objects.Button,
GI.Astal.Objects.CenterBox,
GI.Astal.Objects.CircularProgress,
GI.Astal.Objects.EventBox,
GI.Astal.Objects.Icon,
GI.Astal.Objects.Label,
GI.Astal.Objects.LevelBar,
GI.Astal.Objects.Overlay,
GI.Astal.Objects.Scrollable,
GI.Astal.Objects.Slider,
GI.Astal.Objects.Stack,
GI.Astal.Objects.Window,
GI.Astal.Structs,
GI.Astal.Structs.ClickEvent,
GI.Astal.Structs.HoverEvent,
GI.Astal.Structs.MotionEvent,
GI.Astal.Structs.ScrollEvent
23 changes: 23 additions & 0 deletions lang/haskell/Astal/pkg.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "gi-astal",
"version": "3.0.0",
"description": "Bindings for libastal, autogenerated by haskell-gi.",
"synopsis": "libastal bindings",
"author": "kotontrion",
"girName": "Astal",
"girVersion": "3.0",
"baseVersion": "base >= 4.7 && <5",
"distributionPackages": {
},
"giDepends": [
"gi-glib == 2.0.*",
"gi-gio == 2.0.*",
"gi-gobject == 2.0.*",
"gi-gdkpixbuf == 2.0.*",
"gi-gtk == 3.0.*",
"gi-gdk == 3.0.*",
"gi-gtk-layer-shell == 0.1.*",
"gi-astal-io == 0.1.*"
],
"pkgconfigDepends": "astal-3.0"
}
3 changes: 3 additions & 0 deletions lang/haskell/Astal/stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packages:
- '.'
resolver: lts-13.7
5 changes: 5 additions & 0 deletions lang/haskell/AstalApps/AstalApps.overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace AstalApps

delete-node AstalApps/Application/app
delete-node AstalApps/Application/get_app
delete-node AstalApps/Application/set_app
3 changes: 3 additions & 0 deletions lang/haskell/AstalApps/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### 0.1.0

initial release
Loading