This document shows how to create a Ruby gem that exposes a Haskell function for calculating factorials to Ruby. It includes code for the Haskell factorial function, a C main file that calls it, and a Ruby extension file that loads the Haskell function and makes it available in Ruby. The Makefile generated allows building the gem, which can then be installed and used to call Math.factorial from IRB.