moffy-samples-gtk4 (empty) → 0.1.0.0
raw patch · 7 files changed
+120/−0 lines, 7 filesdep +basedep +moffydep +moffy-samplessetup-changed
Dependencies added: base, moffy, moffy-samples, moffy-samples-gtk4-run
Files
- CHANGELOG.md +11/−0
- LICENSE +30/−0
- README.md +1/−0
- Setup.hs +2/−0
- app/Main.hs +18/−0
- moffy-samples-gtk4.cabal +56/−0
- test/Spec.hs +2/−0
+ CHANGELOG.md view
@@ -0,0 +1,11 @@+# Changelog for `moffy-samples-gtk4`++All notable changes to this project will be documented in this file.++The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),+and this project adheres to the+[Haskell Package Versioning Policy](https://pvp.haskell.org/).++## Unreleased++## 0.1.0.0 - YYYY-MM-DD
+ LICENSE view
@@ -0,0 +1,30 @@+Copyright Yoshikuni Jujo (c) 2023++All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are met:++ * Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.++ * Redistributions in binary form must reproduce the above+ copyright notice, this list of conditions and the following+ disclaimer in the documentation and/or other materials provided+ with the distribution.++ * Neither the name of Yoshikuni Jujo nor the names of other+ contributors may be used to endorse or promote products derived+ from this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ README.md view
@@ -0,0 +1,1 @@+# moffy-samples-gtk4
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ app/Main.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE LambdaCase #-}+{-# OPTIONS_GHC -Wall -fno-warn-tabs #-}++module Main (main) where++import System.Environment+import Control.Moffy.Samples.Boxes+import Control.Moffy.Samples.Boxes.Run.Gtk4+import Control.Moffy.Samples.Followbox+import Control.Moffy.Samples.Followbox.Run.Gtk4++main :: IO ()+main = getArgs >>= \case+ ["boxes"] -> runBoxes boxes+ ["followbox"] -> runFollowbox "firefox" followbox+ _ -> putStrLn $+ "Usage: moffy_samples [SUBCOMMAND]\n\n" +++ "Commands are\n\tboxes\n\tfollowbox"
+ moffy-samples-gtk4.cabal view
@@ -0,0 +1,56 @@+cabal-version: 2.2++-- This file has been generated from package.yaml by hpack version 0.35.2.+--+-- see: https://github.com/sol/hpack++name: moffy-samples-gtk4+version: 0.1.0.0+synopsis: Sample executables of moffy - GTK4 version+description: Please see the README on GitHub at <https://github.com/YoshikuniJujo/moffy-samples-gtk4#readme>+category: Control+homepage: https://github.com/YoshikuniJujo/moffy-samples-gtk4#readme+bug-reports: https://github.com/YoshikuniJujo/moffy-samples-gtk4/issues+author: Yoshikuni Jujo+maintainer: yoshikuni.jujo@gmail.com+copyright: Copyright (c) 2023 Yoshikuni Jujo+license: BSD-3-Clause+license-file: LICENSE+build-type: Simple+extra-source-files:+ README.md+ CHANGELOG.md++source-repository head+ type: git+ location: https://github.com/YoshikuniJujo/moffy-samples-gtk4++executable moffy_samples_gtk4+ main-is: Main.hs+ other-modules:+ Paths_moffy_samples_gtk4+ autogen-modules:+ Paths_moffy_samples_gtk4+ hs-source-dirs:+ app+ ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N+ build-depends:+ base >=4.7 && <5+ , moffy+ , moffy-samples+ , moffy-samples-gtk4-run+ default-language: Haskell2010++test-suite moffy-samples-gtk4-test+ type: exitcode-stdio-1.0+ main-is: Spec.hs+ other-modules:+ Paths_moffy_samples_gtk4+ autogen-modules:+ Paths_moffy_samples_gtk4+ hs-source-dirs:+ test+ ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N+ build-depends:+ base >=4.7 && <5+ default-language: Haskell2010
+ test/Spec.hs view
@@ -0,0 +1,2 @@+main :: IO ()+main = putStrLn "Test suite not yet implemented"