Giter VIP home page Giter VIP logo

Comments (16)

Hexirp avatar Hexirp commented on July 28, 2024
hexyll-core  >     [ 1] runRules:        FAIL
hexyll-core  >       unit-test/Hexyll/Core/RulesTest.hs:45:
hexyll-core  >       expected: fromList [example.md,russian.md,example.md (metadataMatch),example.md (mv1),russian.md (mv1),example.md (mv2),russian.md (mv2),example.md (nav),example.md (raw),russian.md (raw)]
hexyll-core  >        but got: fromList []

ここのテスト結果を見るに、 setVersion は思ったより使われているようだ。これは (raw) の部分が version によるアノテーションである。

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

取り敢えず Path へ移行する。どのようにして使われているのかはまだわかってないのでエラーになるかもしれない。

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

Binary インスタンスの書き方分からん。

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

mzero とか使うのはいいの?

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

ソーソコードを読んだ結果、きちんと失敗として扱われるらしい。このくらいの情報がどこにもないのちょっとあかん。「 Binary はこんな感じにインスタンス書くんですよ」が公式ドキュメントにしかなくて、さらに「 Alternative なので失敗も扱えますよ」という情報がどこにもない

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

PathBinary のインスタンスになっていないのに少しイラっと来たけど、これは Path を含むレコードを Binary のインスタンスにしようとした時、今ある関数の組み合わせで何とかなるからなのかな。何とかならない NFData はきちんとインスタンスになっているし。

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

setVersionMaybe (First String) という Monoid 構造をいれようとしたけど、これは First (Maybe String) と同じだった。

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

違った

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

"monoid builder" でググったら思いかけず kazu-yamamoto 氏の「 Blaze Builder のひみつ」というドキュメントを見つけてしまった。

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

https://kazu-yamamoto.hatenablog.jp/entry/2018/11/29/155311

"monoid configuration" で出てきたこれが正解

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

-- | Convert an identifier to a relative 'FilePath'

ここから Identifier は相対パスが格納されると仮定されていることが分かる。

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

getIdentVersionIdentifier.Pattern でしか使われない。

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

https://haskell-haddock.readthedocs.io/en/latest/markup.html

Lists of the same type don’t have to be separated by a newline...

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

getIdentVersionsetIdentVersion は internal にしたほうがいいのでは……?

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

https://hackage.haskell.org/package/QuickCheck-2.13.2/docs/Test-QuickCheck-Modifiers.html

まとめモジュールで再エクスポートされているので、このモジュールをインポートする必要はないよとドキュメントに書いてくれるのありがたい。

from hexirp-hakyll.

Hexirp avatar Hexirp commented on July 28, 2024

よし、テストの実装終わった

from hexirp-hakyll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.