moffy-samples-gtk3 (empty) → 0.1.0.0
raw patch · 7 files changed
+127/−0 lines, 7 filesdep +basedep +moffy-samplesdep +moffy-samples-gtk3-runsetup-changed
Dependencies added: base, moffy-samples, moffy-samples-gtk3-run
Files
- CHANGELOG.md +11/−0
- LICENSE +30/−0
- README.md +1/−0
- Setup.hs +2/−0
- app/Main.hs +24/−0
- moffy-samples-gtk3.cabal +57/−0
- test/Spec.hs +2/−0
+ CHANGELOG.md view
@@ -0,0 +1,11 @@+# Changelog for `moffy-samples-gtk3`++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-gtk3
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ app/Main.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE ImportQualifiedPost #-}+{-# 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.Gtk3+import Control.Moffy.Samples.Followbox+import Control.Moffy.Samples.FollowboxAnother qualified as A+import Control.Moffy.Samples.FollowboxOrigin qualified as O+import Control.Moffy.Samples.Followbox.Run.Gtk3++main :: IO ()+main = getArgs >>= \case+ ["boxes"] -> runBoxes boxes+ ["followbox"] -> runFollowbox "firefox" followbox+ ["followbox-another"] -> runFollowbox' "firefox" A.followbox+ ["followbox-origin"] -> runFollowbox "firefox" O.followbox+ _ -> putStrLn $+ "Usage: moffy_samples [SUBCOMMAND]\n\n" +++ "Commands are\n\tboxes\n" +++ "\tfollowbox\n\tfollowbox-another\n\tfollowbox-origin"
+ moffy-samples-gtk3.cabal view
@@ -0,0 +1,57 @@+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-gtk3+version: 0.1.0.0+synopsis: Sample executables of moffy - GTK3 version+description: Please see the README on GitHub at <https://github.com/YoshikuniJujo/moffy-samples-gtk3#readme>+category: Control+homepage: https://github.com/YoshikuniJujo/moffy-samples-gtk3#readme+bug-reports: https://github.com/YoshikuniJujo/moffy-samples-gtk3/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-gtk3++executable moffy_samples_gtk3+ main-is: Main.hs+ other-modules:+ Paths_moffy_samples_gtk3+ autogen-modules:+ Paths_moffy_samples_gtk3+ 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-samples+ , moffy-samples-gtk3-run+ default-language: Haskell2010++test-suite moffy-samples-gtk3-test+ type: exitcode-stdio-1.0+ main-is: Spec.hs+ other-modules:+ Paths_moffy_samples_gtk3+ autogen-modules:+ Paths_moffy_samples_gtk3+ 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+ , moffy-samples+ , moffy-samples-gtk3-run+ default-language: Haskell2010
+ test/Spec.hs view
@@ -0,0 +1,2 @@+main :: IO ()+main = putStrLn "Test suite not yet implemented"