我试图使用Development.Shake.FilePattern中定义的提取函数,但它是隐藏的。为什么?从我能收集到的信息来看,它也不是在内部使用的。
$ ghci
GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> import Development.Shake.FilePattern
<no location info>:
Could not find module `Development.Shake.FilePattern'
it is a hidden module in the package `shake-0.15.10'
Prelude> 提取将非常方便。目前,我不得不求助于自定义字符串操作。
发布于 2017-06-28 22:22:44
extract在内部用于实现用户可见的&%>函数.
抖动故意试图避免泄露内部实现细节-例如,它包含线程池实现,它保持安静。尽管如此,FilePattern显然是有用的,所以:
filePattern,它执行上面所要求的操作。FilePattern功能已经发布为 library,Shake将用于其所有功能。https://stackoverflow.com/questions/44799038
复制相似问题