CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 12 Aug 2025 10:26:26 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20180610232710
location: https://web.archive.org/web/20180610232710/https://github.com/ujihisa/rubyinline-haskell
server-timing: captures_list;dur=1.089638, exclusion.robots;dur=0.030784, exclusion.robots.policy;dur=0.012852, esindex;dur=0.017889, cdx.remote;dur=1407.193705, LoadShardBlock;dur=1455.621522, PetaboxLoader3.datanode;dur=1096.059065, PetaboxLoader3.resolve;dur=238.178506
x-app-server: wwwb-app222
x-ts: 302
x-tr: 2919
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app222; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Tue, 12 Aug 2025 10:26:26 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: GitHub.com
x-archive-orig-date: Sun, 10 Jun 2018 23:26:57 GMT
x-archive-orig-transfer-encoding: chunked
x-archive-orig-status: 200 OK
x-archive-orig-cache-control: no-cache
x-archive-orig-vary: X-PJAX
x-archive-orig-set-cookie: logged_in=no; domain=.github.com; path=/; expires=Thu, 10 Jun 2038 23:26:57 -0000; secure; HttpOnly
x-archive-orig-set-cookie: _gh_sess=SkUyc2VCTi95N0hpYkVPaEtjeFRoS1F1LzhrWGtJa3FoZWVRZnh3Z3hpL0I0S0hVclFxMmRjOUQzMlQwK1U5Sk03RFZKc1gyYnF1QVg0ejdqR1dVZkFpeWtaNkdTejhTUEZIWFdYUkdtd2YxSXZhV3Q1OUpWQUhVMWRFSk5VYUVSMUNqZFB6dC9ldFRCZFI5bzNDZFp5QWpoSENlNlRzc2cwbzVRWUlCcCtId1VDMjRsQWNST05ZKzVrN2JWcWVsTFR4anBGSDZRYmw3eFQvQWl2MkNGbnVRS3BuNjZVNmI3SjdoTzVKaW9XWDFweDdZTG81VXQ0U2JLMEV0YjNIU1ZsazdtaWh4MHpZbUcrSzczVVhrTWE4S3Q2TE45cFVIUlY3WnFWa1VBTE1GZEVIWXF0YS9md1F2MTkxSlJvcVpPRkFnVlEwQzlUVmFzYnZXMyt2QUJuT0tseUxCN0JFaVRSVlphSlc1M3JybnBmSmFMQnFEbHBvYjVScCsxZG5PeHJmeWhWZHRrN0Z5KzVJR25VM0dmVms0QmtXMVg1VkFteW5CZTdYNGhvdz0tLWFjTVhSTGpFNkR2LzBwc0pGU2Fic1E9PQ%3D%3D--dca56a44104b282ea132e71931f54e7122dd7298; path=/; secure; HttpOnly
x-archive-orig-x-request-id: b26f8697-baaf-4e20-9363-2bd1515feb37
x-archive-orig-x-runtime: 0.180950
x-archive-orig-strict-transport-security: max-age=31536000; includeSubdomains; preload
x-archive-orig-x-frame-options: deny
x-archive-orig-x-content-type-options: nosniff
x-archive-orig-x-xss-protection: 1; mode=block
x-archive-orig-expect-ct: max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"
x-archive-orig-content-security-policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' uploads.github.com status.github.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com wss://live.github.com; font-src assets-cdn.github.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: assets-cdn.github.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src assets-cdn.github.com; style-src 'unsafe-inline' assets-cdn.github.com
x-archive-orig-x-runtime-rack: 0.188039
x-archive-orig-x-github-request-id: A564:58FA:7DFA086:E16E545:5B1DB3C1
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 10 Jun 2018 23:27:10 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 10 Jun 2018 23:27:10 GMT", ; rel="memento"; datetime="Sun, 10 Jun 2018 23:27:10 GMT", ; rel="next memento"; datetime="Mon, 02 Nov 2020 18:58:37 GMT", ; rel="last memento"; datetime="Wed, 31 May 2023 11:30:34 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: archiveteam_github_20180704062559/archiveteam_github_20180704062559.megawarc.warc.gz
server-timing: captures_list;dur=0.757743, exclusion.robots;dur=0.027927, exclusion.robots.policy;dur=0.012290, esindex;dur=0.018403, cdx.remote;dur=57.209374, LoadShardBlock;dur=335.288847, PetaboxLoader3.datanode;dur=257.567918, PetaboxLoader3.resolve;dur=149.314063, load_resource;dur=118.525779
x-app-server: wwwb-app222
x-ts: 200
x-tr: 610
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
GitHub - ujihisa/rubyinline-haskell
Fetching latest commit…
Permalink
Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
No description, website, or topics provided.
Ruby
Clone or download
Launching GitHub Desktop...
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop...
If nothing happens, download GitHub Desktop and try again.
Launching Xcode...
If nothing happens, download Xcode and try again.
Launching Visual Studio...
If nothing happens, download the GitHub extension for Visual Studio and try again.

Cannot retrieve the latest commit at this time.
Failed to load latest commit information. | |||
![]() |
lib | ||
![]() |
README | ||
![]() |
memo.txt |
README
RubyInline Haskell class Fib def self.fib(n) case n when 0 return 0 when 1 return 1 else fib(n-2) + fib(n-1) end end end You can write it such as class Fib RubyInlineHaskell.classmethods << QED fib :: Fixnum -> Fixnum fib 0 = 0 fib 1 = 1 fib n = fib(n-2) + fib(n-1) QED end You can also get the corresponding type checking specs. describe Fib it 'fib :: Fixnum -> Fixnum' do n = rand(10) Fib.fib(n).class.should == Fixnum end end # KNOWN ISSUE: fib(n) may become Bignum. # KNOWN ISSUE: It doesn't support type variable like "[a]" 2008-12-28 Implemented in my dream.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.