diff --git a/_blogposts/archive/2020-03-26-generalize-uncurry.mdx b/_blogposts/archive/2020-03-26-generalize-uncurry.mdx index ba1b49ed5..ff35f0321 100644 --- a/_blogposts/archive/2020-03-26-generalize-uncurry.mdx +++ b/_blogposts/archive/2020-03-26-generalize-uncurry.mdx @@ -53,19 +53,19 @@ message leaks the underlying encoding -- now all those limitations are gone! **Previously:** - + - + - + The error messages above are cryptic and hard to understand. And the limitation of not supporting recursive functions make uncurried support pretty weak. Now those limitations are all gone, you can have polymorphic uncurried recursive functions and it support labels. - + - + The error message is also enhanced significantly diff --git a/public/static/blog/archive/label-error.png b/public/static/blog/archive/label-error.png new file mode 100644 index 000000000..c72f1aa2d Binary files /dev/null and b/public/static/blog/archive/label-error.png differ diff --git a/public/static/blog/archive/poly-error.png b/public/static/blog/archive/poly-error.png new file mode 100644 index 000000000..47947b2f6 Binary files /dev/null and b/public/static/blog/archive/poly-error.png differ diff --git a/public/static/blog/archive/recursive-error.png b/public/static/blog/archive/recursive-error.png new file mode 100644 index 000000000..99bfbb30b Binary files /dev/null and b/public/static/blog/archive/recursive-error.png differ diff --git a/public/static/blog/archive/recursive.png b/public/static/blog/archive/recursive.png new file mode 100644 index 000000000..6068eb021 Binary files /dev/null and b/public/static/blog/archive/recursive.png differ diff --git a/public/static/blog/archive/uncurry-label.png b/public/static/blog/archive/uncurry-label.png new file mode 100644 index 000000000..c44f9f8c1 Binary files /dev/null and b/public/static/blog/archive/uncurry-label.png differ diff --git a/src/Blog.res b/src/Blog.res index 91b2e8844..b356efb0c 100644 --- a/src/Blog.res +++ b/src/Blog.res @@ -132,8 +132,13 @@ module FeatureCard = { ~firstParagraph: string="", ~slug: string, ) => { - let authorImg = - + let authorImg = switch author.imgUrl { + | "" => React.null + | imgUrl => +
+ +
+ }
{React.string(title)}
-
authorImg
+ authorImg