Haskell - コードの整理とプロジェクトのビルド - stackを使ってプロジェクトをビルトする - 作成者
入門Haskellプログラミング (Will Kurt(著)、株式会社クイープ(監修、翻訳)、翔泳社)の UNIT6(コードの整理とプロジェクトのビルド)、LESSON 35(stackを使ってプロジェクトをビルトする)、35.2(プロジェクトの構造を理解する)、Q35-1の解答を求めてみる。
軽量マークアップ言語
palindrome-checker/palindrome-checker.cabal
cabal-version: 2.2
-- This file has been generated from package.yaml by hpack version 0.37.0.
--
-- see: https://github.com/sol/hpack
name: palindrome-checker
version: 0.1.0.0
description: Please see the README on GitHub at <https://github.com/githubuser/palindrome-checker#readme>
homepage: https://github.com/githubuser/palindrome-checker#readme
bug-reports: https://github.com/githubuser/palindrome-checker/issues
author: kamimura
maintainer: example@example.com
copyright: 2025 kamimura
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/githubuser/palindrome-checker
library
exposed-modules:
Lib
other-modules:
Paths_palindrome_checker
autogen-modules:
Paths_palindrome_checker
hs-source-dirs:
src
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
build-depends:
base >=4.7 && <5
default-language: Haskell2010
executable palindrome-checker-exe
main-is: Main.hs
other-modules:
Paths_palindrome_checker
autogen-modules:
Paths_palindrome_checker
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
, palindrome-checker
default-language: Haskell2010
test-suite palindrome-checker-test
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
Paths_palindrome_checker
autogen-modules:
Paths_palindrome_checker
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
, palindrome-checker
default-language: Haskell2010