forked from Pixelgebra/pixelgebra.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (96 loc) · 5.57 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" , charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pixelgebra</title>
<link rel="stylesheet" type="text/css" href="./css/foundation.css" />
<link rel="stylesheet" type="text/css" href="./css/syntax.css" />
<!-- <link rel="stylesheet" type="text/css" href="/css/blog.css" /> -->
<link rel="stylesheet" type="text/css" href="./css/other.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="icon" type="image/x-icon" href="http://pixelgebra.github.io/img/favicon.ico" />
</head>
<body class="custom-background">
<!-- HEAD -->
<div class="row">
<!-- post -->
<div class="large-9 push-3 columns">
<div class="panelIdx">
<h1><a class="header" href="./index.html">Pixelgebra</a></h1>
<div class="panel">
<h2>Define and Use Hackage</h2>
<p>By Jaiyalas - 17 Oct 2015</p>
<hr />
<p>一個 haskell package 的版本號是有明確意義而不是隨便亂取的數字開心就好的。 到底這些數字個別有什麼意思?不同的數字間又代表了什麼差異?接下來我們會簡單介紹一下, 希望對於有心開發 hackage 的人會有幫助。</p>
<p>此外,我們說一個 <code>instance C T</code> 是一個孤兒 (<em>orphan instance</em>) 是指這個 instance 既不是和 <code>data T</code> 一起被定義在同一個 module 中,也不是和 <code>class C</code> 一起被定義在同一個 module 中。這樣的 instance 會產生一些 importing 上面的問題,也因此這個議題對於開發 hackage 的人來說是值得了解的。</p>
<p><a href="./content/posts/2015-10-17-hackage.html" class="readmore">... read more</a></p>
</div> <!-- end panel-->
<div class="panel">
<h2>Working with Contravariant Functors.</h2>
<p>By Jaiyalas - 03 Aug 2015</p>
<hr />
<p>In category, a contravariant functor is not thing but a functor with reversed output. For example, given type <code>a</code>, <code>b</code> in category <code>C</code> and a morphism <code>f :: a -> b</code>, a functor <code>CF</code> is a contravariant functor if <code>CF f</code> has type as <code>CF b -> CF a</code></p>
<p><a href="./content/posts/2015-08-03-Contravariance.html" class="readmore">... read more</a></p>
</div> <!-- end panel-->
<div class="panel">
<h2>For old time's sake.</h2>
<p>By Jaiyalas - 29 May 2015</p>
<hr />
<p>Today we will have a short overview of old data-/time-related packages listed as follows:</p>
<ul>
<li><a href="https://hackage.haskell.org/package/old-time">old-time</a></li>
<li><a href="http://hackage.haskell.org/package/time-compat">time-compat</a></li>
<li><a href="https://hackage.haskell.org/package/old-locale">old-locale</a></li>
<li><a href="http://hackage.haskell.org/package/time-locale-compat">time-locale-compat</a> <a href="#fn1" class="footnoteRef" id="fnref1"><sup>1</sup></a></li>
</ul>
<p>Those modules are very easily to use but have some shortcomings. The <strong>old-time</strong>(<code>System.Time</code>) has poor supporting on locale and formating and lack functions to manipulate times. And the <code>TimeDiff</code> is not very sueful. The <strong>old-locale</strong>(<code>System.Locale</code>), however, is not very out-dated.</p>
<p><a href="./content/posts/2015-05-29-old-time.html" class="readmore">... read more</a></p>
</div> <!-- end panel-->
</div> <!-- end panel-->
</div>
<!-- Sidebar -->
<div class="large-3 pull-9 columns sidebar">
<h1><a href="./index.html"><img src="./img/Logo.png" /></a></h1>
<hr />
<ul class="side-nav">
<li>
<a href="./about.html"><img src="http://blog.chucklefish.org/wp-content/uploads/2014/09/diamond_2x.png" /> About</a></li>
<li>
<a href="./tags.html"><img src="http://blog.chucklefish.org/wp-content/uploads/2014/09/greenslime_2x.png" /> Tags</a></li>
<li>
<a href="./archive.html"><img src="http://blog.chucklefish.org/wp-content/uploads/2014/09/codex_2x.png" /> All Posts</a></li>
</ul>
</div>
</div>
<!-- FOOTER -->
<footer class="row">
<hr />
<div class="large-6 columns">
<p>Copyright © 2015 Pixelgebra. All rights reserved.</p>
</div>
<div class="large-6 columns text-right">
<p>Powered by <a href="http://jaspervdj.be/hakyll">Hakyll</a>.</p>
</div>
</footer>
<script src="js/vendor/modernizr.js"></script>
<script src="js/vendor/jquery.js"></script>
<script src="js/foundation.min.js"></script>
<!-- JS := MathJax -->
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<!-- JS := Disqus -->
<script type="text/javascript">
(function() {
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = '//pixelgebra.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
<script id="dsq-count-scr" src="//pixelgebra.disqus.com/count.js" async></script>
<!-- END of definition of js-->
</body>
</html>