Comments (16)
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.
取り敢えず Path
へ移行する。どのようにして使われているのかはまだわかってないのでエラーになるかもしれない。
from hexirp-hakyll.
Binary
インスタンスの書き方分からん。
from hexirp-hakyll.
mzero とか使うのはいいの?
from hexirp-hakyll.
ソーソコードを読んだ結果、きちんと失敗として扱われるらしい。このくらいの情報がどこにもないのちょっとあかん。「 Binary はこんな感じにインスタンス書くんですよ」が公式ドキュメントにしかなくて、さらに「 Alternative なので失敗も扱えますよ」という情報がどこにもない
from hexirp-hakyll.
Path
が Binary
のインスタンスになっていないのに少しイラっと来たけど、これは Path
を含むレコードを Binary
のインスタンスにしようとした時、今ある関数の組み合わせで何とかなるからなのかな。何とかならない NFData
はきちんとインスタンスになっているし。
from hexirp-hakyll.
setVersion
に Maybe (First String)
という Monoid
構造をいれようとしたけど、これは First (Maybe String)
と同じだった。
from hexirp-hakyll.
違った
from hexirp-hakyll.
"monoid builder" でググったら思いかけず kazu-yamamoto 氏の「 Blaze Builder のひみつ」というドキュメントを見つけてしまった。
from hexirp-hakyll.
https://kazu-yamamoto.hatenablog.jp/entry/2018/11/29/155311
"monoid configuration" で出てきたこれが正解
from hexirp-hakyll.
ここから Identifier
は相対パスが格納されると仮定されていることが分かる。
from hexirp-hakyll.
getIdentVersion
は Identifier.Pattern
でしか使われない。
from hexirp-hakyll.
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.
getIdentVersion
と setIdentVersion
は internal にしたほうがいいのでは……?
from hexirp-hakyll.
https://hackage.haskell.org/package/QuickCheck-2.13.2/docs/Test-QuickCheck-Modifiers.html
まとめモジュールで再エクスポートされているので、このモジュールをインポートする必要はないよとドキュメントに書いてくれるのありがたい。
from hexirp-hakyll.
よし、テストの実装終わった
from hexirp-hakyll.
Related Issues (20)
- error $ unlines [ ... ] イディオムをやめる HOT 1
- Binary のインスタンスの修正
- BinaryTime に関するものを整備する
- Hexyll.Core.Routes を書き直しする HOT 8
- Identifier を Resource に依存させる HOT 2
- PatternExpr と Pattern のインターフェースを共通化する HOT 1
- Hexyll.Core.Identifier をリファクタリングする HOT 3
- Hexyll.Core.Dependencies に Internal を使わない
- Resourcre を一つのモジュールとする
- Provider は Store に依存するべきか? HOT 1
- Universe を H.C.Metadata から独立させる
- Hexyll.Core.Item を書き直す HOT 2
- HasConfiguration 型クラスを追加する
- コピーライトの年を合わせる
- Hexyll.Core.Compiler.Internal をリファクタリングする
- Hexyll.Core.Compiler.Internal を整える HOT 1
- ask と view を合成した関数を実装する
- Hexyll.Core.Writable をリファクタリングする。 HOT 1
- Hexyll.Core.Log をリファクタリングする HOT 3
- Writable を使わない HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexirp-hakyll.